Raised This Month: $ Target: $400
 0% 

PHP Mysql Update


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-01-2011 , 13:50   Re: PHP Mysql Update
Reply With Quote #5

Most people don't use string formating in php, why not sure, it's just not that common. Most people just do something like

"UPDATE inviter SET Status = 'INVITED'
WHERE Steamid = '". mysql_real_string_escape($var) . "'"

Remember to use mysql_real_string_escape on ANY variable RIGHT before it gets inserted! Otherwise you can be vulnerable to sql injections. Writing a small class to handle all db interactions is probably a good idea.
Styles is offline
Send a message via AIM to Styles
 


Thread Tools
Display Modes

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 09:26.


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