Help using php with sql

When somebody logs on to my website, how can I create a user specific query to show in a table? (When John Doe logs in the next page says welcome John and then shows a table with information from a query relating specifically to him)

Here is the code to make it say Welcome John:

<?
  $name = $_POST['name'];  (assuming the data is coming from a HTML form)
  echo "Welcome John!";
?>

As far as the SQL statement. That depends on how your database is laid out?

Sponsor our Newsletter | Privacy Policy | Terms of Service