Re: [PHP-DB] INSERT dynamic values problem - Need help urgently!

2004-02-27 Thread Daniel Clark
Try: " .$row["class_code"]. ""; > while ($row = mysql_fetch_array($sql)) > { > print "" .$row["class_code"]. ""; > } > $result = $db->query($sql); > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] INSERT dynamic values problem - Need help urgently!

2004-02-27 Thread Pavel Lobovich
> Hi all: > > I am trying to create a registration form whereby one of the user input is as > follows: (a drop down menu with values retrieved from DB): > - > > Class Code: > > > $sql = mysql_query("SELECT DISTINCT cl

Re: [PHP-DB] INSERT dynamic values problem - Need help urgently!

2004-02-27 Thread Mikael Grön
Irin, First of all, you need to do this instead of what you're doing: while ($row = mysql_fetch_row($sql)) Second, this value should be storable just as any other values. i.e. mysql_query("insert into database (table) values('" . $_POST['class_code'] . "')"); I hope this helps you a bit. Regard

[PHP-DB] INSERT dynamic values problem - Need help urgently!

2004-02-27 Thread irinchiang
Hi all: I am trying to create a registration form whereby one of the user input is as follows: (a drop down menu with values retrieved from DB): - Class Code: " .$row["class_code"]. ""; } $result = $db->query($sql);