Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP spit table not working

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #37511
    
    $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.

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.