RE: [PHP] parse error AFTER end of included file??

From: Date: Tue, 28 Aug 2001 15:47:54 +0000
Subject: RE: [PHP] parse error AFTER end of included file??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64839@lists.php.net to get a copy of this message
doh! thanks for spotting that Kirk! cheers, j > -----Original Message----- > From: Johnson, Kirk [mailto:kjohnson@zootweb.com] > Sent: Tuesday, August 28, 2001 11:49 AM > To: php-general@lists.php.net > Subject: RE: [PHP] parse error AFTER end of included file?? > > > You need to close off this bit of code with a brace '}': > > if (!isset($page_id)) > { > > Kirk > > > -----Original Message----- > > From: Jaxon [mailto:jaxon@salamander.net] > > Sent: Tuesday, August 28, 2001 9:34 AM > > To: php-general@lists.php.net > > Subject: [PHP] parse error AFTER end of included file?? > > > > > > Hi, > > > > Can anyone tell me why I have a parse error here? > > > > I'm including this file, which is 16 lines, but the error > > being thrown by > > the including page reports a parse error in this file on line 17 ???: > > <?php > > if (!isset($page_type)) > > { > > $page_type = "foo"; > > } > > > > if (!isset($page_id)) > > { > > $sql="select page_id from table where fieldname = $value"; > > $link_id = mysql_connect($host, $usr, $pass) or die > > (mysql_error()); > > mysql_select_db($database, $link_id); //select > > database catalog > > $result = mysql_query ($sql, $link_id) or die (mysql_error()); > > //return result set to php > > if (!$result) echo "wait - no result set!"; > > > > $page_id = mysql_result($result, 0, fieldname); > > ?> > > > > cheers, > > jaxon > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#64839) next »