Hi all,
I'm trying to retrieve fields from my database with following mysql
statement:
$query = SELECT g_games.Title FROM g_collections, g_personal_reviews,
g_games WHERE (g_games.ID=g_personal_reviews.G_ID AND
g_collections.U_ID = '" . $data1['ID'] . "' AND g_personal_reviews.C_ID
= '" . $data2['ID'] . "' ) ";
$resultset = mysql_query($query);
$data = mysql_fetch_array($resultset);
3 Rows in my database comply with the above statement... though I only
get 1 to show up on my php page? How can I show all of them?
This is the php code I'm using to write the results:
while ($data= mysql_fetch_array($resultset))
{
echo $data[Title]." ";
}
My tables are as followed:
g_games
g_collections
g_personal_reviews > this table connects all others with G_ID ("game
ID"), C_ID ("Collection_ID"), U_ID ("User ID)...
users