vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   mySQL query error: INSERT INTO pmtext (https://vborg.vbsupport.ru/showthread.php?t=182864)

chet 06-18-2008 03:31 PM

mySQL query error: INSERT INTO pmtext
 
Searched through the 10 pages here but could not find any answers to my problem, can any of you see the fault and suggest how I fix it please, I;m guessing its a Tournament issue

Thanks all

mySQL query error: INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) VALUES ('30', 'O'Kane', 'Tournament Information', 'Hello O\'Kane,

please remember to make your game in the Jewel Quest-Tournament

Click here to view this tournament.', 'a:1:{i:0;s:2:\"30\";}', 0, 1213806540, 0, 0)

mySQL error: 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 'Kane', 'Tournament Information', 'Hello O\'Kane,

please remember to make your g' at line 1
mySQL error code:
Date: Wednesday 18th 2008f June 2008 05:29:00 PM

--------------- Added [DATE]1213810397[/DATE] at [TIME]1213810397[/TIME] ---------------

forgot to mention, this is stopping users getting to the arcade now, it just dispalys the above

--------------- Added [DATE]1213821345[/DATE] at [TIME]1213821345[/TIME] ---------------

Ok looks like there is a bug, this is from my host

Quote:

This is a problem with the PHP script, it is not properly escaping the apostrophes in the SQL query before sending it to MySQL; you will need to contact the developer of the PHP script involved for a bug fix.
--------------- Added [DATE]1213864533[/DATE] at [TIME]1213864533[/TIME] ---------------

can anybody help please, at the moment my arcade is down

thanks

towermatt 06-02-2009 04:21 PM

Any way to find an answer to this one, it's happening to me now as well.

chet 06-04-2009 09:20 AM

The problem is that I have a user called O'Kane and its the ' in the name that is causing the issue


All times are GMT. The time now is 06:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02439 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete