Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with new product listing


rrrhythm

Recommended Posts

i want to get the 20 most recently added products, then in the new products box display 9 random products from that larger list.

 

i'm not asking anyone to code it for me (althought that would be nice), just looking for guidance on how to proceed. i'm a fairly compentent PHP/MYSQL programmer, just feeling stuck here.

 

thanks

rj

Link to comment
Share on other sites

i want to get the 20 most recently added products, then in the new products box display 9 random products from that larger list.

 

i'm not asking anyone to code it for me (althought that would be nice), just looking for guidance on how to proceed. i'm a fairly compentent PHP/MYSQL programmer, just feeling stuck here.

 

thanks

rj

 

i suppose this gets to the point that i don't quite understand the interface between php and the database. $new_products_query = tep_db_query("...

this variable, $new_products_query, is what? a 2D array?

 

and $new_products = tep_db_fetch_array($new_products_query), what is $new_products? also an array? a string?

 

so i'm not sure if i should approach this from the DB query or from the php.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...