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
> 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
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
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);