ChaosKnight Posted May 22, 2010 Share Posted May 22, 2010 In my database there are 2 tables, hotels and game_parks. At the bookings form, I use ajax to dynamically populate the dropdowns (country, province, city and accommodation). At first it only worked with the hotels, but now I want to add the parks into the same dropdown, sould I just make a second sql query and throw that into a while after the while of the hotels? Or is it possible to run the second query and then join the two arrays? Thanks Link to comment https://forums.phpfreaks.com/topic/202577-joining-2-mysql-result-arrays-into-one-php-array/ Share on other sites More sharing options...
Gekk0 Posted May 22, 2010 Share Posted May 22, 2010 Array merge: <?php $array = array_merge($array1,$array2); ?> Link to comment https://forums.phpfreaks.com/topic/202577-joining-2-mysql-result-arrays-into-one-php-array/#findComment-1062048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.