Guest Posted April 21, 2003 Share Posted April 21, 2003 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 More sharing options...
Ian Posted April 22, 2003 Share Posted April 22, 2003 Try, $num_records = tep_db_num_rows($listing_query); HTH Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.