Kill the googlebot
Posts: 6
48 credits Members referred : 0
« Reply #2 on: May 04, 2007, 12:53:12 PM »
i'm not sure i understand, i have chanegd that line so it now calls the customer_no variable and looks like this:
ORDERS, customer_no, VALID_UNTIL * 86400);
but now i get the following error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/chris/public_html/rock/classes/db_cart/db_cart_checkout_stock_example.php on line 82
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6300
38626 credits Members referred : 374
i'm not sure i understand, i have chanegd that line so it now calls the customer_no variable and looks like this:
ORDERS, customer_no, VALID_UNTIL * 86400);
but now i get the following error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/chris/public_html/rock/classes/db_cart/db_cart_checkout_stock_example.php on line 82
this is wrong: "customer_no"
check the script for the right var name (could not be so hard to find)
Kill the googlebot
Posts: 6
48 credits Members referred : 0
« Reply #4 on: May 04, 2007, 02:56:26 PM »
first off sorry for all the posts, but am having problems when updating the order quantity. Once im at the checkout, if i enter 0 as my qunatity and then update i get this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/chris/public_html/rock/classes/db_cart/db_cart_checkout_stock_example.php on line 82
Thanks, Chris M
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6300
38626 credits Members referred : 374
It's time to use PHP5!
« Reply #5 on: May 04, 2007, 11:15:12 PM »
don't worry about the questions
this query is only related to your product/stock value database:
$query_stock = sprintf("SELECT art_no, amount AS on_stock FROM db_cart_stock_article_example WHERE art_no IN (%s) ORDER BY art_no", $search_in);
this will work only with the included database. Look the cart class is not stand alone, you need at last am existing product catalog and maybe a customer database.