PHP Mysql Update
this code doesnt seem to update the status colum where steam id =...
PHP Code:
|
Re: PHP Mysql Update
PHP Code:
|
Re: PHP Mysql Update
Quote:
|
Re: PHP Mysql Update
Quote:
|
Re: PHP Mysql Update
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. |
| All times are GMT -4. The time now is 09:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.