[PHP-DB] 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 =

Re: [PHP-DB] Using selected fields

2001-03-12 Thread Russ Michell
Sure: while($row = mysql_fetch_array($result)) { $usrLevel = $row['userlevel']; $member = $row['member']; $pswd = $row['pw']; } //end -while loop Now $usrLevel, $member and $pw are available as variables taken from this array to use as you please in you php scripts! Russ Hi there,

FW: [PHP-DB] Using selected fields

2001-03-12 Thread Steve Brett
-Original Message- From: Steve Brett Sent: 12 March 2001 11:40 To: '[EMAIL PROTECTED]' Subject: RE: [PHP-DB] Using selected fields I have a similar security setup in the app i'm working on at the moment, but attack from a slightly different angle. i have two tables, one that stores