SQL Problem with "|"
Well, i got query and the code is like this:
Code:
formatex(query,127, "INSERT INTO `%s` VALUES('%s','%s','%s','%s','%d:%02d','**:**','knife','%s')",sql_table,mapname,name,getcountry,authid,(climbertime[id]/60), (climbertime[id]%60),ip)Code:
public addtomysql(failstate,Handle:query,error[],errnum,data[],size) { |
Re: SQL Problem with "|"
http://support.microsoft.com/default.aspx/kb/178070
replace( the_guys_name, "|", chr(124) ); However, I don't think amxx or pawn has chr() hardcoded in, and I can't think of the correct func off the top of my head. Can someone who knows the name of the func please reply with it? |
Re: SQL Problem with "|"
A BIG THX DUDE <3
btw i used this: Code:
replace_all(name,31,"'","\'"); |
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.