...

View Full Version : Problem Error



CoolAsCarlito
08-08-2008, 01:03 AM
Does someone see anything wrong with this code?

Parse error: parse error, unexpected '<' in /home/content/y/a/n/yankeefaninkc/html/champions3.php on line 18

// Retrieve and print every record
while ($row = mysql_fetch_array ($r)){
print <table border=0 width=575>;
print </table>;
}

Nightfire
08-08-2008, 01:10 AM
No quotes.




// Retrieve and print every record
while ($row = mysql_fetch_array ($r)){
print '<table border="0" width="575">';
print '</table>';
}

CoolAsCarlito
08-08-2008, 01:16 AM
Thank you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum