| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jun 2005
Posts: 3
![]() | DB Error: Bad SQL Query: DELETE FROM 4images_sessionvars WHERE session_id NOT IN ... My friend is having problems with her webpage. She started to have problems yesterday in her photo gallery. She says she hasn't changed anything (pictures, coding or settings). This is the problem which is popping up: DB Error: Bad SQL Query: DELETE FROM 4images_sessionvars WHERE session_id NOT IN ('d46d563abb04d5e687db322ad8e7f7f6' .... The gallery still works but you have 1000 of lines before you get there. http://www.tararulz.com/gallerytest/...php?cat_id=547 is her website. I'm not very good with PHP and know nothing about SQL. If someone could help I would really appreciate that. If you could also give me some details how to fix the problem. ????: NamePros.com http://www.namepros.com/programming/94937-db-error-bad-sql-query-delete.html Thanks, Kristopher |
| |
| | #2 (permalink) |
| NamePros Admin ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,919
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | That's a whole lot of session variables! I would have to see the actual code to see where it's pulling those from. But... perhaps if you emptied the 4images_sessionvars table the error would go away, or there might be another table that contains the session_id's that you could empty. Just looks like there just too many entries in the array and MySQL can't handle it.
__________________ Reach me at rj at namepros dot com |
| |
| | #6 (permalink) |
| Senior Member Join Date: May 2004 Location: France
Posts: 1,226
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Google is your friend... http://www.google.com/search?hl=en&q=%22DELETE+FROM+4images_sessionvars+ WHERE+session_id+NOT+IN%22&btnI=I'm Feeling Lucky Like they said. Check if the table exists. If yes, delete that. And then create the table. Hope that helps. David. |
| |
| | #8 (permalink) |
| Senior Member Join Date: May 2004 Location: France
Posts: 1,226
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Depending how you're hosted.. If you have CPanel, use the phpMyAdmin link and you'll see your database with 4images tables. If you don't see a 4images_sessionvars table, use the SQL code to create the table. |
| |
| | #9 (permalink) |
| NamePros Admin ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,919
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Or try posting your inquiry on their support forum, http://www.4homepages.de/forum/
__________________ Reach me at rj at namepros dot com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| $ 6.95 Windows Hosting :: MS SQL, ASP.NET, Cold Fusion, Oracle, Multiple domains | JodoHost | Web Hosting Offers | 0 | 03-27-2005 04:36 AM |
| Connecting to your SQL Database using Enterprise Manager | priyanka[imported] | Web Hosting Discussion | 1 | 12-07-2004 03:21 PM |
| Connecting to your SQL Database using Enterprise Manager | priyanka[imported] | Webmaster Tutorials | 0 | 12-06-2004 08:58 PM |
| HELP!!!!!! DB Error? Bad SQL Query? | logos | The Break Room | 5 | 08-25-2004 07:48 PM |