On Fri,  6 Apr 2001 13:00, Martin Skjöldebrand wrote:
> It's not first of April today is it?

Only where you are :-)

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


If you change that to:

print "<p>TID detail view - Document #<b>$id</b></p>";

it should work; It's probably getting confused by the php open/close tags 
in the middle of a set of php tags.

-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA

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

Reply via email to