RE: [PHP-DB] ghost parse error?
| From: | zmn | Date: | Mon, 20 Jan 2003 15:16:09 +0000 |
| Subject: | RE: [PHP-DB] ghost parse error? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24969@lists.php.net to get a copy of this message | ||
Why in the first place do you break you php and start it over again?
I mean the "?>" and the "<?" you might just as well keep it going.
Please try to get the code in one long row :)
zmn
-----Oorspronkelijk bericht-----
Van: Addison Ellis [mailto:addison@bellsouth.net]
Verzonden: maandag 20 januari 2003 15:43
Aan: php-db@lists.php.net
Onderwerp: [PHP-DB] ghost parse error?
hello,
if you could check this code that would be awesome. i am
getting a parse error on line 16 but line 16 has nothing on it and my
eyes are missing something... maybe my mind. anyway... thank you
again. best, addison
<?
session_start();
if (@$auth != "yes")
{
header("Location: login.php");
exit();
}
include("config.php");
$sql = "SELECT first_name,last_name FROM accounts
WHERE email='$logname'";
$result = mysql_query($sql)
or die("Couldn't execute query 1.");
$row = mysql_fetch_array($result,MYSQL_ASSOC);
extract($row);
?>
<?
$cobj = mysql_db_query($dbname,"select * from category where
id=$category");
$crow = mysql_fetch_object($cobj);
?>
<?
$scobj = mysql_db_query($dbname,"select * from subcategory
where id=$subcategory");
while ($scrow = mysql_fetch_object($scobj);
?>
<?
echo "
<head><title>Directing</title></head>
<h2 align='center' style='margin-top: .7in'>
$first_name $last_name</h2>\n";
?>
<p align="center"><br>
<b><font color="#CC9933" size="2" face="Arial, Helvetica,
sans-serif">
<? echo $crow->name;?>
<font size="3">></font>
<? echo $scrow->name;?>
</font></b> <font color="#3399FF" size="3" face="Arial,
Helvetica,
sans-serif">
Directing . . .</font></p>
<form method="post" action="">
</form>
--
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