smonkcaptain Posted April 3, 2011 Share Posted April 3, 2011 Hey all, Say i performed this query: <?php $search=mysql_query("SELECT * FROM `photos` WHERE genre LIKE 'Airliner' AND location LIKE 'London Heathrow");?> and the query throws out the array of: array ( [0] => '223', [1] => '538', [2] => '411' [3] => '411' ) the numbers being the 'ID' of the photo.. How can i code it so that i can echo the previous or next id in the sequence? Thanks all! Quote Link to comment https://forums.phpfreaks.com/topic/232578-quering-a-query/ Share on other sites More sharing options...
sasa Posted April 3, 2011 Share Posted April 3, 2011 look some pagination tutorials like http://www.phpfreaks.com/tutorial/basic-pagination Quote Link to comment https://forums.phpfreaks.com/topic/232578-quering-a-query/#findComment-1196322 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.