Help For This Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help For This Code

    look at this..it's a code that wipes one single message in pvt inbox..i need a version to wipe ALL messages. :
    break;

    case "delete" :

    $query = $db->sql_query("select privmsgs_id from " . PRIVMSGS_TABLE . " where privmsgs_id = \"$pmid\" and privmsgs_to_userid = \"" . $userdata['user_id'] . "\" limit 1");
    $privmsg_info = $db->sql_fetchrow($query);
    if($privmsg_info['privmsgs_id'] == 0)
    {
    echo $lang['wap_pm_not_exist'];
    }
    else
    {
    $query = $db->sql_query("delete from " . PRIVMSGS_TABLE . " where privmsgs_id = " . $privmsg_info['privmsgs_id'] . " limit 1");
    if($query)
    {
    echo $lang['wap_pm_deleted_ok'];
    }
    else
    {
    echo $lang['wap_there_was_an_error']. ". " . $lang['wap_please_try_again_later']. ".";
    }
    }

    break
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    #2
    be a help to know what script you are using

    Comment


      #3
      be a help to know what script you are using[/b]
      it's the wapgate 2.0.1 by plusmedia for phpbb forums
      sigpicthe italian/international COMMUNITY of friendship
      http://people2000.netne.net
      WAP/WEB
      peoplemailbox@katamail.com

      Comment

      Working...
      X