minus18
07-31-2001, 11:29 AM
Can anyone tell me why this puts a list of entries in my frame, not in my table?
<td><select name= userid size = 3>
<option value =>".dropDown()."
</select>
</td>
/************************************************** ***************************/
// function dropDown() //
/************************************************** ***************************/
function dropDown()
{
mysql_connect("localhost", "root", "*****");
$result = mysql_db_query("db", "select user_id from staff");
while($row = @mysql_fetch_array($result))
{
echo "<option value = ".$row[0]."><br> ".$row[0];
}
}
I've had a poke around on the net and can't get any scripts to work.
Cheers or Tshuss as we say here in Bavaria
<td><select name= userid size = 3>
<option value =>".dropDown()."
</select>
</td>
/************************************************** ***************************/
// function dropDown() //
/************************************************** ***************************/
function dropDown()
{
mysql_connect("localhost", "root", "*****");
$result = mysql_db_query("db", "select user_id from staff");
while($row = @mysql_fetch_array($result))
{
echo "<option value = ".$row[0]."><br> ".$row[0];
}
}
I've had a poke around on the net and can't get any scripts to work.
Cheers or Tshuss as we say here in Bavaria