Raised This Month: $51 Target: $400
 12% 

SQL_EscapeString help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 06-27-2015 , 12:15   SQL_EscapeString help
Reply With Quote #1

Hello,

I need help for my MySQL query: when i want to save a sentence with ' , there is a problem with SQL_EscapeString (and i must use this to protect query).

PHP Code:
Format(sentencesizeof(sentence), "Hello! I'm a man!");

SQL_EscapeString(H_Databasesentencesentencesizeof(sentence)); 

new 
String:query[512]; 
Format(querysizeof(query), "INSERT INTO bdd_sentence(ID, Sentences) VALUES ('%d', '%s')"IDsentence); 

SQL_TQuery(H_DatabaseT_CheckSQLCallbackquery); 
In my database, i have: Hello! I///////////////

Thank you in advance
NeXoU is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode