vashichino7 Posted September 26, 2011 Posted September 26, 2011 Hello All, When you click on an item to be put in the checkout cart, and you are redirected to the shopping_cart.php page; I get an error on the bottom stating this: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/savingsh/public_html/includes/functions/database.php on line 99 when I open my database.php on line 99 here is what it states: function tep_db_fetch_array($db_query) { (THIS IS LINE 99) return mysql_fetch_array($db_query, MYSQL_ASSOC); } Any help? Thank you guys!
vashichino7 Posted September 26, 2011 Author Posted September 26, 2011 So I read that placing an @ infront of the line 99 mysql_fetch_array($db_query, MYSQL_ASSOC); and making it @mysql_fetch_array($db_query, MYSQL_ASSOC); it will fix the problem!
MrPhil Posted September 27, 2011 Posted September 27, 2011 No, it will not "fix" anything. It just suppresses the error message. There was something wrong upstream of this function call, that was producing a bad query result.
satish Posted September 27, 2011 Posted September 27, 2011 you need to use debug back trace and make out which function called this mysql_fetch_array function. then check why those two variables are not as they are to be. satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.