Jump to content

mysql help


acidglitter

Recommended Posts

What's a better way to do this?

Right now I have this..

 

$shows_sql=mysql_query("SELECT
shows.*,
showbands.band_id
FROM shows
INNER JOIN showbands
ON shows.show_id = showbands.show_id
GROUP BY shows.show_id
ORDER BY shows.dated ASC");

 

When it shows the shows, it only shows the first band_id. I'm thinking I'm just going to have a 2nd query for the bands so it will show all of them. But the problem with that is it would take a lot longer to load. Is there a better way to do this?

Link to comment
https://forums.phpfreaks.com/topic/80796-mysql-help/
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.