Hi,
since a few days a get an max_questions error with my Website. I can't understand because I changed nothing in any SQL Statement. Now, I'm searching the problem on my localhost with xampp. When I visit the website and reload it some times, the max_questions (currently 100) are full and I can't connect to the DB anymore. Everytime when I reload the site, I get the following error message, the number I marked is changed every time the page is reloaded - what did it mean?
Is it possible that a query causes an error so that connections aren't closed? Furtheron I don't understand why 100 queries are full when I only reload the page for about 20 times
Please Help
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name (FROM 4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id LIMIT
209, 1
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 '(FROM 4images_images i, 4images_categories c) LEFT JOIN 4images_us' at line 2
...after a couple of reloads...DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
User 'user01' has exceeded the 'max_questions' resource (current value: 100)
-----------------------------------------------------------------------------------------------------------------------------------
EDIT: I changed the include folder from my installation with the a new one from this website. Now I don't get the error witch starts with
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.us...
but after a couple of reloads the connections are still full I think the error message is a problem with the MySQL Server from Xampp (it's a Version 4 sql server), my hoster uses MySQL 5 and I made the changed for V5 as described in this forum.