RE: need help spotting this php parse error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






It Does have a closing Brace, just check my second email it contains the FULL code.. i missed the last few lines copying it the first time somehow.


From: "Andreas Sheriff" <mailinglist@asheriff.com>
To: "David Rice" <haloplayer@hotmail.com>
Subject: RE:  need help spotting this php parse error
Date: Thu, 23 Jan 2003 12:09:15 -0800

The if statement does not have a closing brace.

> -----Original Message-----
> From: David Rice [mailto:haloplayer@hotmail.com]
> Sent: Thursday, January 23, 2003 11:53 AM
> To: php-db@lists.php.net
> Subject:  need help spotting this php parse error
>
>
> 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
>
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux