Jump to content

[SOLVED] show all data from two table


onenonly

Recommended Posts

$query = "SELECT * FROM movie, game";

$result = mysql_query($query);

 

while ($row = mysql_fetch_array($result)){

 

echo "<table>";

 

echo "<tr><td>".$row["type"]."</td></tr>";

echo "<tr><td>".$row["name"]."</td></tr>";

echo "<tr><td>".$row["date"]."</td></tr>";

echo "<tr><td>".$row["picture"]."</td></tr>";

echo "<tr><td>".$row["description"]."</td></tr>";

 

echo "</table>";

 

echo "<BR><BR>";

 

}

 

it doesnt work

I want all records to show

both table are not connected by any means

Link to comment
https://forums.phpfreaks.com/topic/161322-solved-show-all-data-from-two-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.