acidglitter Posted December 8, 2007 Share Posted December 8, 2007 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 More sharing options...
Barand Posted December 8, 2007 Share Posted December 8, 2007 What's a better way to do this? To do what? All you've given is code that does what you don't want. Link to comment https://forums.phpfreaks.com/topic/80796-mysql-help/#findComment-409968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.