
March 13th, 2004, 05:00 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
getting parse error at very end of code?
Hi,
i'm using php to access postgres db, and im trying to get the page to retrieve some information from database. The code im using is as below.
I keep getting an error saying
Parse error: parse error in /home/path_name_etc/html/titleResults.php on line 81
When line 81 is the line after the code finishes, i.e. after the </html> end
Can anyone see what im doing wrong?
Thanks!
php Code:
Original
- php Code |
|
|
|
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000"> <table width="100%" border="0" bgcolor="" height="435"> <tr> <td align="left" bgcolor="#ffffcc" height="47"> <p align="center"><font color="#003300" size="3"><b>University Of blah</b></font><font color="#003300" size="2"><b><br> School Of blah</b></font><font color="#003300" size="3"></font></p> </td> <td height="47" valign="top" bgcolor="#ffffcc"> <div align="right"><font size="6" color="#003300"><b>Student blah</b></font></div> </td> </tr> <tr valign="top"> <td width="20%" height="339"> <br> <?php include("menu.php"); ?> <p> </p><p> </p></td> <td width="100%" bgcolor="" height="339"> <p align="right"> <?php include("smallInclude.php"); ?> </p> <table width="98%" border="0" align="center" height="112"> <tr> <td valign="top" height="315"><b><font size="2" color="#003300">The following books have been returned for your search criteria "<?php echo $search; ?>"</font></b> <br><br> <?php include("connectBookdb.php"); $query = pg_query("SELECT * FROM ts_module_books WHERE book_title LIKE '%$search%'"); $row = 0; printf ("<tr><td>Book Title</td><td>Author</td><td>Publisher</td></tr>"); do { printf ("<tr><td>%s</td><td>%s</td><td>%s</td></tr>", $data[0], $data[1], $data[2]); $row++; while ($row < $numrows); ?> <br> </td> </tr> </table> </td> </tr> <tr valign="top"> <td colspan="2" ><br><hr> </td> <table width="98%" border="0" align="center" height="112"> </table> </tr> </table> </body> </html>
|