floating ghost inboxs

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

    floating ghost inboxs

    alrite guys tryin do it so owners can delete them frm tools iv done it but when ya click delete ghost inboxs in tools you get a x database error eres ownerproc bit for it great if ya can help

    PHP Code:
    //////////////////////////clear inboxs//////////////////////////
    else if($action=="delgpms")
    {
    echo 
    "<head>";
    echo 
    "<title>Owner Tools</title>";
    $thmname=$theme["theme"];
    $them=explode("_",$thmname);
    $them2=$them[0];
    if(
    $them2=="Custom")
    {
    include(
    "custom_theme.inc.php");
    }else{
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";

    echo 
    "</head>";
    echo 
    "<body>";
    echo 
    "<p align=\"center\">";
    echo 
    "<br/>";
    $res mysql_query("DELETE FROM ibwf_private WHERE  ibwf_private WHERE byuid='0'");
    if(
    $res)
    {
    echo 
    "<img src=\"../images/ok.gif\" alt=\"O\"/>Ghost pms were deleted";
    }else{
    echo 
    "<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!";
    }
    echo 
    "<br/><br/><b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=clrdta&amp;sid=$sid\">Clear Data</a><br/>";
    echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
    echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo 
    "</p></body>";

    Last edited by metulj; 03.05.09, 17:18. Reason: please use [ code ] ... [ / code ] or [ php ] ... [ / php ] tag for posting codes

    #2
    too many ibwf_private in your query .
    Wapchat4u


    Topsites4u

    Comment


      #3
      try this
      Code:
      [COLOR=#000000][COLOR=#007700]else if([/COLOR][COLOR=#0000BB]$action[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"delgpms"[/COLOR][COLOR=#007700])
      {
      echo [/COLOR][COLOR=#DD0000]"<head>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<title>Owner Tools</title>"[/COLOR][COLOR=#007700];
      [/COLOR][COLOR=#0000BB]$thmname[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$theme[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"theme"[/COLOR][COLOR=#007700]];
      [/COLOR][COLOR=#0000BB]$them[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]explode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"_"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$thmname[/COLOR][COLOR=#007700]);
      [/COLOR][COLOR=#0000BB]$them2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$them[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]];
      if([/COLOR][COLOR=#0000BB]$them2[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"Custom"[/COLOR][COLOR=#007700])
      {
      include([/COLOR][COLOR=#DD0000]"custom_theme.inc.php"[/COLOR][COLOR=#007700]);
      }else{
      echo [/COLOR][COLOR=#DD0000]"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"[/COLOR][COLOR=#007700];
      } 
      echo [/COLOR][COLOR=#DD0000]"</head>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<body>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<p align=\"center\">"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<br/>"[/COLOR][COLOR=#007700];
      [/COLOR][COLOR=#0000BB]$res [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"DELETE FROM ibwf_private WHERE byuid='0'"[/COLOR][COLOR=#007700]);
      if([/COLOR][COLOR=#0000BB]$res[/COLOR][COLOR=#007700])
      {
      echo [/COLOR][COLOR=#DD0000]"<img src=\"../images/ok.gif\" alt=\"O\"/>Ghost pms were deleted"[/COLOR][COLOR=#007700];
      }else{
      echo [/COLOR][COLOR=#DD0000]"<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!"[/COLOR][COLOR=#007700];
      }
      echo [/COLOR][COLOR=#DD0000]"<br/><br/><b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=clrdta&amp;sid=$sid\">Clear Data</a><br/>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"[/COLOR][COLOR=#007700];
      echo [/COLOR][COLOR=#DD0000]"</p></body>"[/COLOR][COLOR=#007700];
      }  [/COLOR][/COLOR]
      ghost messages can be caused by many things like incorrect sql executions
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        thanx guys noticed it as soon as ya said it lol tryin fix to many things at same time i think lol thanx

        Comment

        Working...
        X