Raised This Month: $ Target: $400
 0% 

SQL syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
krekers
Junior Member
Join Date: Jul 2007
Old 07-16-2007 , 07:19   Re: SQL syntax
Reply With Quote #1

Thank you very much

All ok, but when I compiled, there showed some warning:

PHP Code:
// plugin.sma(31) : warning 217: loose indentation 
the code:

PHP Code:
dbi_query(dbc"INSERT INTO table (blah) VALUES ('amx')"
The plugin works, but why there showed warning?
krekers is offline
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 07-16-2007 , 08:06   Re: SQL syntax
Reply With Quote #2

Quote:
Originally Posted by krekers View Post
Thank you very much

All ok, but when I compiled, there showed some warning:

PHP Code:
// plugin.sma(31) : warning 217: loose indentation 
the code:

PHP Code:
dbi_query(dbc"INSERT INTO table (blah) VALUES ('amx')"
The plugin works, but why there showed warning?
That warning does not effect the runtime of your plugin, its just a compiler
warning telling you that you have messy code usually.

One thing I'd like to point out is that if you want to protect your server from
SQL injection then use full quotions:

Code:
dbi_query(dbc, "INSERT INTO `table` ( `blah` ) VALUES ( ^"variable^" );");
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
Reply



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 21:35.


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