Unread Pms For Lava Script

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

5 replies · 851 views · started 18 years ago · 1 min read

4 participants
hypetype Developer · 128 posts #1

UNREAD PMs [place this on the user profile in index.php]

  $noin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND byuid='".$uid."'"));
  $nout = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND unread='1'"));
  echo "Unread PMs: [b]$nout[0][/b], [b]$noin[0][/b] from you
";

======================

Guest #3

UNREAD PMs [place this on the user profile in index.php]

  $noin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND byuid='".$uid."'"));
  $nout = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND unread='1'"));
  echo "Unread PMs: $nout[0], $noin[0] from you
";

======================

bro do u hve clear txt script or automatic refresh code i want to add it in online list

cortez Junior · 27 posts #5

its not worked lol

unread:0,44 from u wat is it

Guest #6

CODE $noin = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_private WHERE touid='".$who."' AND byuid='".$uid."'AND unread='1'")); $nout = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_private WHERE touid='".$who."' AND unread='1'")); echo "Unread PM: $nout[0] From you $noin[0] ";

Missed AND unread='1' in first line, Now works!

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