Thread: Updating users
View Single Post
Old 02-09-2008, 01:50 AM   #11 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by RobertK View Post
Yeah, pretty much. I'd also combine it with a:
sql Code:
LIMIT 1
Quote:
Originally Posted by RobertK View Post
Can you show me your current query please? LIMIT is the absolute last statement you should include.
PHP Code:
                        mysql_query("UPDATE `news` SET `title` = '"mysql_real_escape_string($title) . "', `poster` = '"mysql_real_escape_string($poster) ."', `tags` = '"mysql_real_escape_string($tags) ."', `msg` = '"mysql_real_escape_string($msg)."' WHERE `id` = '"$_GET['id']."'); 
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote