In line 3, you don't need your <? ?> tags again.
This is how you have it:
print "<p>TID detail view - Document #<b><?php echo $id; ?></b></p>";
this is how it should be:
print "<p>TID detail view - Document #<b>$id</b></p>";
Tyler Longren
-----Original Message-----
From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 10:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mystery line
It's not first of April today is it?
In:
<? if ($id != "") {
print "<center>";
print "<p>TID detail view - Document #<b><?php echo $id; ?></b></p>";
$sql="select * from tid_tbl where id=" . $id;
$result1=mysql_query($sql, $mysql_link);
$row = mysql_fetch_array($result1);
echo '<table border="1">';
echo '<tr><td BGCOLOR="' . $headerbg . '">Subject</td><td>' .
$row["subject"] . '</td></tr>';
echo '<tr><td BGCOLOR="' . $headerbg . '" valign="top">Issue/Info</td><td>'
. ereg_replace (13, "", nl2br($row["body"])) . '</td></tr>';
echo '<tr><td BGCOLOR="' . $headerbg . '">Author</td><td>' . $row["author"]
. '</td></tr>';
echo '<tr><td BGCOLOR="' . $headerbg . '">' . $contact . '</td><td>' .
$row["company"] . '</td></tr>';
echo '</table></center>';
}
?>
The third line (starting print "<p> TID detail") is my mystery line.
If I comment it out ("// print "<p> TID detail...") the parser chokes on on
the last line (or I suppose somewhere between).
While I totally delete it everything is OK. What is the parser seeing that
I'm not?
M.
--
PHP General 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]
--
PHP General 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]