Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_db_fetch_array - how many results are coming?


Guest

Recommended Posts

More like a php question, but maybe some of the people here can help ...

 

I am trying to find out the size of the array that is called via the tep_db_fetch_array function, so that prior to printing the results, I can know how many records will be returned. Something like this:

 

$num_records = tep_db_fetch_array($listing_query);



while ($products = tep_db_fetch_array($listing_query)) {

....

}

 

 

Any help will be appreciated.

 

Roy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...