PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



Mysql error

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
maliy0



Joined: 31 Jul 2010
Posts: 1

PostPosted: Sat Jul 31, 2010 12:51 am    Post subject: Mysql error Reply with quote

Hello everybody. I'm new here, and hoping to find solution to this problem.
I have an auction website, that is currently setup for coins only. I'm trying to restore original categories.

When I upload phpMyAdmin SQL Dump file for categories, and then go to my website and click on any categories, I get this error:

A Mysql error has occurred while running the script:

The query you are trying to run is invalid
Mysql Error Output: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR a.addl_category_id IN ())' at line 2
SQL Query: SELECT count(*) AS count_rows FROM probid_auctions a WHERE a.active=1 AND a.approved=1 AND a.closed=0 AND a.deleted=0 AND a.list_in!='store' AND a.catfeat='1' AND (a.category_id IN () OR a.addl_category_id IN ())

I know there is something wrong with the dump file, I just can't figure out what. Please note, when I upload my other file, with limited categories for coins only, everything works as it should, with no errors.

If someone knows what to do to fix it, please let me know. It's been driving me crazy for the past week. Thanks
Back to top
View user's profile Send private message
lostboy



Joined: 02 May 2004
Posts: 6058
Location: toronto, canada

PostPosted: Thu Aug 05, 2010 4:59 am    Post subject: Reply with quote

The IN parameters of your query are empty...that will make it fail
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum