...

View Full Version : Sql Edit Message



ajloun
08-26-2009, 05:01 AM
Hello

if this code below used to delete message from the database , wht the edit Code should look like upon this code .


if ( !empty($_GET['xid']) ) {
$sql = "DELETE FROM "._message_TABLE." WHERE xid = ".intval($_GET['xid']);
$result=$DB->queryF($sql);
}

tomws
08-26-2009, 05:07 AM
You probably want the MySQL UPDATE statement (http://dev.mysql.com/doc/refman/5.0/en/update.html).

tailender1
08-26-2009, 07:11 AM
try this code..


if (isset($_GET['xid'])) {
$sql = "DELETE FROM "._message_TABLE." WHERE xid = ".intval($_GET['xid']);
$result=$DB->queryF($sql);
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum