![]() |
SQL ERROR 1064 - Think it is a single quote error
Hi Guys,
I was hoping someone out there can help me out with this sql error I am having. I am thinking it has something to do with " ' " single quotes. In the code a user can input text into a text box. The data stored in this text box is assigned to a string variable,which is stored in the database via an sql statement. The code works fine until a " ' " is used in the text box. Here is the error: Code:
Database error in vBulletin 3.0.4: is there a try catch routine with php? |
Is this from a custom script you made or from vbulletin itself?
|
it is from an Erwin Form to Post hack.
|
Escape quotes in all strings you use in the query. addslashes works but vB's MySQL class also has a method to do it.
|
vB's class uses:
PHP Code:
|
Does that exist in 3.0 ?
|
Nope, it was implemented with 3.5. :)
|
All times are GMT. The time now is 01:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|