I have a cms site and all the main pages are driven from a template.
Each different property page picks up the unique property id number, like below.
If I use this sql command how do I change the part "127" for the "value=" above, so it connects with the correct property id in the database? Do I use "listing_number " or "value" and do I use quotes, double or single? Os something different?
Each different property page picks up the unique property id number, like below.
Code:
<input type="hidden" name="listing_number" value="20161" />
Code:
$sql = mysql_query("SELECT photo_id, photo_caption_1, photo_listing
FROM listing_photo
WHERE photo_listing = 127
ORDER BY `photo_status_main` <> 'main'
LIMIT 10");
Comment