v2 coding

Started on the old forum in October 2010 · view the original in the archive · old links redirect here

#v2codin

3 replies · 696 views · started 16 years ago · 1 min read

3 participants
celticbhoy Junior · 11 posts #1

can anyone help me fix this error im gettin, its for unread messages on wapdesire v2,instead its tellin ppl how many they got and not the user of the profile there on

$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.="<b>New Msgs:</b> $readinboxes[0]<br/>";

all help will be gr8

wolvertoon Newbie · 9 posts #3
Thankyou Something else you just triggered a thought in mind I kept using ".getuid_sid($who)." and ".getnick_sid($who)."  so I changed fwd to unread and magic worked lol Thanks again :)  , Try this celtic This is showing mine unread and thier unread inboxes in thier profiles

$readinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='$who' AND unread='1') or (unread='".getuid_sid($sid)."'))"));
 $main.="<b>New Msgs:</b> $readinboxes[0]<br/>";

Please Say thanks if it works for you 

Hi im Antione Tony Thanks to all for the help everyone has giving me on coding-talk, im here almost everyday Here to code/create and learn new stuff , If I can help I will but please say thanks and friends on the way is a total bonus as we all have something in common we love creating new stuff 🙂

celticbhoy Junior · 11 posts #4

hey mate i tried urs and it works and i also tried something elses and it works, cheers lads 🙂

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