I have a table called table1 in mysql. I want to output it all, each row on a separate line. It has 4 columns, id,a,b,c.
Whats the shortest php code to just get it all out? I’m up to here:
$a=mysql_query("SELECT * FROM table1");
$b=mysql_fetch_assoc($a);
…what next?
What if their are an unknown number of columns?
Update in relation to this questions comment: