Re: [PHP] Using selected fields

2001-03-15 Thread Richard Lynch
> How can I tell the page to use the userlevel colunm too? Use it how?... Do you want to use it to decide where to send them?: $userlevel = mysql_result($result, 0, 'userlevel'); switch ($userlevel){ case 1: header("Location: guru.php"); break; case 2: header("Locatio

[PHP] Using selected fields

2001-03-12 Thread Tristan . Pretty
Hi there, Firstly a big thanks to those who pointed me in the direction of 'PHP-fast and easy web development'. it was/is a great book, and I have learnt loads on the past week. Anyhoo... I have a php page and included the line: $sql = "SELECT * FROM $table_name WHERE member = \"$member\