Been lurking around reading archived posts, tutorials and manuals all day. It´s time I asked for some help. Pretty new to php, but I have done this with ASP. I want to output rows from a database (MySQL) to tables. One table for each row to be exact. this only produces one table with multiple rows:
$results = mysql_query("SELECT * FROM newsphp");
echo "<TABLE border=0 width=225>";
while($row = mysql_fetch_array($results)) {
echo "<TR><TD>".$row["date"]."</TD><TD>".$row["heading"]."</TD><TD>".$row["description"]."</TD></TR>";
}
echo "</TABLE>";
I need to get all the rows in the database out in tables to use these in a news-section. Help?
Regards, Gaute