show when there messages

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

3 replies · 377 views · started 17 years ago · 1 min read

2 participants
brand Senior · 391 posts #1

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

$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

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

crazybrumi Super moderator Principal · 1,064 posts #2
$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.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close