RE: [PHP-DB] Newbie: IF statement

2001-05-14 Thread Taylor, Stewart
You should be using '==' compare not '=' assignment Plus you can use the isset function to determine whether the $page variable has been set e.g. if (!isset($Page)) $Page="homepage"; -Stewart -Original Message- From: Dan Eskildsen [mailto:[EMAIL PROTECTED]] Sent: 14 May 2001 11:24 To:

RE: [PHP-DB] Variable Variables in PHP

2001-06-27 Thread Taylor, Stewart
"; WHILE ($i < $num) { $name = mysql_result($result,$i,name); $email = mysql_result($result,$i,email); $id = mysql_result($result,$i,id); PRINT ""; < modified PRINT ""; < modified $i++; } PRINT ""; } ?> To create the q

RE: [PHP-DB] problem with form

2001-07-10 Thread Taylor, Stewart
The form header should specify which page you want to go to when you submit the form. If you require to go to diffent pages depending on which button is pressed you can set a hidden variable to specify the required page/action. Then include the correct action code using a switch statement.