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! 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 Link to comment https://forums.phpfreaks.com/topic/232578-quering-a-query/#findComment-1196322 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.