RE: ghost parse error?

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

 



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:  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">&gt;</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


-- 
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