Building Dynamic Value list using ohp

From: Date: Wed, 26 Sep 2001 13:30:30 +0000
Subject: Building Dynamic Value list using ohp
Groups: php.general 
Request: Send a blank email to php-general+get-68850@lists.php.net to get a copy of this message
Hi all, I'm having a problem with dynamically building a value list. My code: <?php mysql_connect ('localhost', 'root', 'monty'); mysql_select_db ('Heronsql'); $query = ("select HEI from heronuser"); // LINE 22 on original script $result = mysql_query($query, $mysql_link); if(mysql_num_rows($result)) { // show all HEIs as options in select form while($row = mysql_fetch_row($result)) { print("<option value=\"$row[0]\">$row[0]</option>"); } } ?> But this generates: "Parse error: parse error in c:\program files\apache group\apache\htdocs\bizflyers\login.php on line 22" Any suggestions? Regards George _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#68850) next »