Problem with row

From: Date: Sun, 07 Oct 2001 19:26:30 +0000
Subject: Problem with row
Groups: php.general 
Request: Send a blank email to php-general+get-70294@lists.php.net to get a copy of this message
Hi, I have a problem, when I choose a row in the select statement in the script below I don't get a out put, see the second script. The outpunt must be $volgende_id Can someone help me? Cheers, Martin. <?PHP Print("<form action=editweek.php method=POST> print("<SELECT NAME=matchid SIZE=5>"); mysql_connect("", "", "") or die("<OPTION>Database error!</OPTION><?SELECT>"); mysql_select_db("voorspelling"); $query = "SELECT id_match, home, away, time FROM matches ORDER BY time"; $result = mysql_query($query); while($wedstrijden = mysql_fetch_array($result)) { print("<OPTION VALUE=\"$wedstrijden[0]\">$wedstrijden[3] &nbsp;&nbsp;&nbsp;&nbsp; $wedstrijden[1] - $wedstrijden[2]\n"); } print("</SELECT>"); Print("<p><center><input type=submit Value=Send!></center></p> </form>"); ?> ------------------------------------------------------------------- editweek.php <?PHP $volgende_id = $wedstrijden[0]; print("$volgende_id"); ?>

« previous php.general (#70294) next »