Jim R Posted June 23, 2010 Share Posted June 23, 2010 I searched, but I rarely can make much of other people's problems when it comes to databases and PHP. Here is what I'm trying to do: I have a datatable full of names of basketball players. I have a datatable that is going to store links to videos to basketball players. Here is the query I have: $query = 'SELECT pr.*,v.* FROM (wp_playerRank) as pr, (hhr_video) as v WHERE pr.nameFirst = v.name_first AND pr.nameLast = v.name_last ORDER BY v.id_vid DESC'; $results = mysql_query($query); while($line = mysql_fetch_assoc($results)) There might be four or five video clips, as we start to compile this list over time. I want to echo information from the hhr_video table. I'm assuming with a FOREACH loop. Right? Quote Link to comment https://forums.phpfreaks.com/topic/205607-getting-information-from-multiple-tables/ Share on other sites More sharing options...
fenway Posted June 24, 2010 Share Posted June 24, 2010 I don't understand the question. Quote Link to comment https://forums.phpfreaks.com/topic/205607-getting-information-from-multiple-tables/#findComment-1076385 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.