This error code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:xxxxx.php on line 112
Line 112 is the last one below
[code=php]<?
$i=0;
$result = mysql_query(“SELECT * FROM rosterlist ORDER BY name”) or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
?>
<p class=MsoNormal><span style=”font-family:Verdana;background:silver”><? echo $row[‘name’]; ?></span><BR>
<? echo “Member #”.$row[‘memberno’]; ?><BR>
<? echo $row[‘Address1’]; ?><BR>
<? echo $row[‘Address2’]; ?><BR>
<? if ($row[‘Address3’] <> “”){
echo $row[‘Address3’]; ?><BR>
<? } else {} ?>
<? if ($row[‘Phone’] <> “”){
echo “Phone: ” .$row[‘Phone’]; ?><BR>
<?} else {} ?>
<? echo (!empty($row[’email1′])) ? “<class=MsoNormal>Email: <a href=”mailto:{$row[’email1′]}”>$row[’email1′]</a><br>n” : “”; ?>
Any idea why? This line worked OK when I read the table row by row and used an array variable instead of the $row approach.
thanks –Larry