$id=$_SESSION;
$fetch=mysql_query("SELECT * FROM music WHERE user=$id limit 10") or die(mysql_error());
echo("
Title |
Composer |
Type |
");
while($row = mysql_fetch_array($fetch))
{
echo("
");
echo $row;
echo(" | ");
echo("");
echo $row;
echo(" | ");
echo("");
echo $row;
echo(" | ");
echo("
");
}
?>
As I go, it’s probably syntax, but I can’t figure it out. After a while, I figured out I was missing three semicolons, but it still doesn’t work. Developing locally. Trimmed it down to something here.
You can see what I’m doing–selecting from mysql table and spitting out the first 10 results in a table. Yes, a table. My first use of tables.
But the table doesn’t show up. That don’t help.