Send text to database
When i say .text then a text message is sent to database.
When new .text is send the the old one is deleted. say .text "this is my message" |
Re: Send text to database
u should be more exactly. I am sure, nobody understand your request.
|
Re: Send text to database
Hi, this should work:
Quote:
PHP Code:
|
Re: Send text to database
Thanks AmXDusT works perfectly!
|
Re: Send text to database
@AmXDusT can you explain in a little details (cant find anyting specified on net) what
Code:
SQL_QuoteString |
Re: Send text to database
Quote:
quotestring should escape the string you're putting there to avoid having some backticks breaking your query. I'm not 100% sure tho, seen it in a few plugins and started using it as well for safety. |
Re: Send text to database
@AmXDust Thanks, i still dont get why Empty_handle but only with that one im not getting errors, how it seems its working well...probably QuoteString is doing the same as replace_all, cuz it requires buffer of strlen*2 of name
i was getting duplicated rows in a table..so i thought it was a character problem but with gotten logs im sure its the problem in sqlx as stated some years ago...so if anyone else struggling: add boolen on plugin_end() and check that bool for every threaded query...also what i found while searching for this fix: Code:
SQL_SetCharset( g_SqlTuple, "utf8" ) |
Re: Send text to database
JocAnis, worked for me without problem. Used amxx 1.9
|
Re: Send text to database
ok im talking about for totally another plugin but with the same function (quotestring)...
|
All times are GMT -4. The time now is 17:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.