Re: Weird problem with ?>

From: Date: Tue, 10 Oct 2000 14:09:41 +0000
Subject: Re: Weird problem with ?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19345@lists.php.net to get a copy of this message
you need to close your for() statement brace. place a "}" right before the ?> Jari Ivanoff wrote: > > I have a weird problem with this script: > > <?php > $db = mssql_connect("wsean1567","www","www")or die("Gick > inte att > ansluta."); > mssql_select_db("VCU_Intranet",$db)or die("Kunde inte välja databas."); > $result = mssql_query("SELECT date,time,head,content,urgent FROM news > ORDER BY date DESC;")or die("Kunde inte utföra frågan."); > > for ($count=0;$count <= 10;$count++) > { > $date = mssql_result($result,$count,"date"); > printf("$date <br>\n"); > > $date = mssql_result($result,$count,"time"); > printf("$time <br>\n"); > > $headline = mssql_result($result,$count,"head"); > printf("$head<br>\n"); > > $content = mssql_result($result,$count,"content"); > printf("$content<br><br>\n"); > ?> > > I get a parse error on the line that contains the final ?>! > The last line! > > Jari Ivanoff > jari.ivanoff@telia.com > +46-(0)70-3142556 > > -- > 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 -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#19345) next »