Jump to content

Quering a Query?


smonkcaptain

Recommended Posts

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

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.