Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving to next record and loop..


emiliano

Recommended Posts

hi... i'm trying to create a image gallery.. this is my sql query

 

select * from table t, products p

where p.product_id = t.products_id and t.record_id = $http_get_vars['id']

 

 

i try this

 

$new_id = $http_get_vars['id'] + 1;



tep_href_link(FILENAME_IMAGE_GALLERY, 'id=' " . $new_id .", 'NONSSL')

 

but the problem is that it only adds 1 to the id, but sometimes the new_id don't match with the product_id that i'm looking for.. i'm being clear?

what i'm looking for is to move to the next record.. but i cant do it!

 

someone have done this?

 

cheers

emiliano

patagonia, argentina

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...