I keep getting a Parsing Error on line 1 error with the following page.  
What am I doing wrong?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

// connnect to the database
if (!($link=mysql_pconnect($hostName, $userName, $password))) {
   DisplayErrMsg(sprintf("error connecting to host %s by user %s", 
$hostName, $userName));

// select the database
if (!mysql_select_db($databaseName, $link)) {
   DisplayErrMsg(sprintf("Error in selecting %s database", 
   DisplayErrMsg(sprintf("error:%d %s", mysql_errno($link), 

$result=mysql_query("SELECT * FROM listings ORDER BY store, $link");

echo "<TABLE BORDER WIDTH=\"100%%\">\n";
echo "<TR>
      <TD><B>Job Desc</B></TD>

while (($row = mysql_fetch_array($result))) {
   echo "<TR>
         <TD><A HREF=\"modify.php?rowid=$rowid\"><I>Modify</I></A>/
            <A HREF=\"delete.php?rowid=$rowid\"><I>Delete</I></A>
echo "</TABLE>";


<A HREF="internal.html">Return To Main Menu</A><BR>
<A HREF="add.php">Add An Item</A>


Jeff Grossman ([EMAIL PROTECTED])

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to