I am using a simple loop that looks like this:
$query = "SELECT * FROM $username";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo $row['id']. " - ". $row['file'];
echo "<br />";
echo "<form method="post" action="" style="width: 80px">
<input name="Checkbox1" type="checkbox" /><input name="Submit1" type="submit" value="submit" /></form>";
When i run it like this I get an error that the < is unexpected. I believe I may be doing something entirely wrong. Is there some other approach that would output a table within a php loop.
Parse error: Syntax error: Unexpected < in...then the code that is causing the problem is not shown above. However you do have several syntax errors because you did not escape the literal double quotes in your double quoted string.