RE: [PHP] mystery line
| From: | Tyler Longren | Date: | Fri, 06 Apr 2001 03:28:39 +0000 |
| Subject: | RE: [PHP] mystery line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47387@lists.php.net to get a copy of this message | ||
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:chimbis@skjoldebrand.org]
Sent: Thursday, April 05, 2001 10:31 PM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net