Re: Parse error when using Javascript & php?

From: Date: Fri, 29 Mar 2002 19:27:27 +0000
Subject: Re: Parse error when using Javascript & php?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12834@lists.php.net to get a copy of this message
Anything outside of the <?php ?> tags doesn't affect PHP one way or the other, as long as it doesn't contain any of the strings like <?php, ?> etc that turn PHP parsing on and off. So I don't think the JavaScript or IFrames would affect it. -Mike At 12:31 PM 3/29/2002 -0600, Todd WIlliamsen wrote:
Parse error line 117... there is no line 117..hehe!! I am thinking that PHP doesn't like IFrames, or Javascript, or maybe just me? Here is the code: <? include "variables.php"; $connection = @mysql_connect("$dbserver", "$dbuser", "$dbpass") or die("Couldn't connect to database"); $db = @mysql_select_db($dbname, $connection) or die("Could not select datababse"); $sql = "SELECT id, news FROM $editortable ORDER BY id"; $result = @mysql_query($sql,$connection) or die("Could not execute query"); while ($row = mysql_fetch_array($result)) { $id = $row['id']; $news = $row['news']; echo "$news"; ?>


« previous php.windows (#12834) next »