Thread: Newest Products
View Single Post
  #144  
Old 05-05-2006, 10:51 PM
  cliffo4's Avatar 
cliffo4 cliffo4 is offline
 

Member
  
Join Date: Jul 2005
Location: Leicester, UK
Posts: 19
 

Default

Quote:
Originally Posted by xcell67
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /include/func/func.db.php on line 125


I'm assuming that

Code:
$query = "AND $sql_tbl[products].avail > 0 AND add_date > $from_time AND add_date < $now_time ";

Looks more like it doesnt know which table "add_date" is from, so prefix it with xcart_products. to read xcart_product.add_date However in the code you probably need to make it:
Code:
$query = "AND $sql_tbl[products].avail > 0 AND $sql_tbl[products].add_date > $from_time AND $sql_tbl[products].add_date < $now_time "

But if thats not right, maybe run the query in phpMyAdmin and see if it works, iff not you can try building the query up or strip it down.
__________________
X-Cart Gold 4.0.19
http://interstellarsounds.com
Reply With Quote