Αποτελέσματα query σε drop-down menu.
Thomas N. Stefanidis
thomas at prometheas.gr
Sun Oct 7 04:11:01 EEST 2001
Hmmm....
Δεν δουλεύει....
Μου βγάζει το error :
Supplied argument is not a valid MySQL result resource on line 8
***********
<?php
$db=mysql_connect("localhost","root","pass*");
mysql_select_db("people");
$result = mysql_query("select * from name");
echo ("<form method = POST action=action.php>");
echo("Select Database To Manage");
echo("<select name=selection>\n");
while ($myrow = mysql_fetch_row($result))
<---- η σειρά 8
{
printf("<option value=%s>%s\n",$myrow[0],$myrow[0]);
}
echo ("</SELECT>\n");
?>
<p>
<input type = "submit" value ="Select" name="b1">
</form>
************
Καμιά ιδέα για το τι φταίει?
Θωμάς
More information about the Linux-greek-users
mailing list