show when there messages

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    show when there messages

    can some one help me with this please so when a member gets a message it shows on the main page

    Code:
    $allinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."'))"));
    $readinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."')) AND unread='1'"));
    $main.="U have $readinboxes[0] Messsages Of Members<br/>\n";
    $allinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox2 WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."'))"));
    $readinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox2 WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."')) AND unread='1'"));
    $main.="U have $readinboxes[0] Messages from staff<br/>\n";
    thanks to any one that helps me out with this
    Last edited by brand; 30.11.09, 15:51.
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    Code:
    $readinboxes = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."')) AND unread='1'"));
    if($readinboxes[0]>0){
    $main.="U have $readinboxes[0] Messages from staff<br/>\n";
    }
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      thanks mate works good
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment


        #4
        thread closed
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment

        Working...
        X