I have an album database and I am trying to display the pictures one at a time with the next and previous buttons. For some reason, it is not working. This is my code:
<CFQUERY DATASOURCE="#dbase#" NAME="SelectedCompany" dbtype="ODBC"> SELECT * FROM photos, album WHERE photos.album_id = album.album_id AND photos.photo_id = #URL.photo_id# </CFQUERY>