Hi,
Can anyone tell me why I keep alternating between an "unexpected T_ENCAPSED_AND_WHITESPACE" error and an "unexpected T_LNUMBER" error with the following code:
$query = "SELECT * FROM boardchanges_checkuser";
$get_comments = mysql_query($query);
while($data = mysql_fetch_array($get_comments))
{
echo("
<table width=\'100%\'>
<tr><td class=\"poll\" align=\"center\"><strong>Comments</strong></td></tr>
<tr><td class=\"poll\" width='25%'>$data['user']</td>
<td class=\"poll\" width='75%>$data['comments']</td><tr>
</table>");
}
I'm trying to insert a table that gives the user number and comments posted by that user.
Can anyone tell me why I keep alternating between an "unexpected T_ENCAPSED_AND_WHITESPACE" error and an "unexpected T_LNUMBER" error with the following code:
$query = "SELECT * FROM boardchanges_checkuser";
$get_comments = mysql_query($query);
while($data = mysql_fetch_array($get_comments))
{
echo("
<table width=\'100%\'>
<tr><td class=\"poll\" align=\"center\"><strong>Comments</strong></td></tr>
<tr><td class=\"poll\" width='25%'>$data['user']</td>
<td class=\"poll\" width='75%>$data['comments']</td><tr>
</table>");
}
I'm trying to insert a table that gives the user number and comments posted by that user.