Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts

    Sql Edit Message

    Hello

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

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

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    You probably want the MySQL UPDATE statement.
    Are you a Help Vampire?

  • #3
    New Coder
    Join Date
    Aug 2009
    Posts
    26
    Thanks
    1
    Thanked 3 Times in 3 Posts
    try this code..

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •