Re: need help spotting this php parse error

From: Date: Thu, 23 Jan 2003 20:05:45 +0000
Subject: Re: need help spotting this php parse error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25077@lists.php.net to get a copy of this message
you might try pulling the semi colon out before while. i put it in red. i think,that's probably it. addison
When i run this script it tells me that I have a parse error on line 34? I really can't see it anyhelp (please!) would be much appreciated Cheers, Dave <? session_start(); if(!$HTTP_COOKIE_VARS["username"]) { /* The Cookie is not set, so load the page as if it is the first time */ include("library/include/header.php"); include("library/include/database.php"); /* Include a header file and a database connections/functions file */ ?> <form name="login" method="post" action=""> <select name="select"> <? $query = "SELECT * FROM Staff WHERE ResterauntId = 1"; $result = mysql_query($query) or die( mysql_error () ); While( $row = mysql_fetch_array($result) ) { ?>
    			<option value="<? echo $row["0"]; ?>"><? echo $row["1"]; echo $row["2"]; ?></option>
    			<?
    		}
    		?>
</select> </form> _________________________________________________________________ Stay in touch with MSN Messenger http://messenger.msn.co.uk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Addison Ellis small independent publishing co. 114 B 29th Avenue North Nashville, TN 37203 (615) 321-1791 addison@bellsouth.net info@smipco.com subsidiaries of small independent publishing co. info@gloabaldog.com info@momandpocentral.com

« previous php.db (#25077) next »