Currently in user profiles i use this code to display total incoming /outgoing messages by that user..
and
The problem i have to periodically reset the private table to reduce load on server, and doing this reset the values to zero . How can i store these values in users table so that it doesnt get reset to zero on truncating the private table and keeps getting updated with the messages received or sent too?? I hope u understand..
I have been trying this since many days, but no success.. i think i am missing out on something small.. :sad:
It would be great if someone helps.. I am talking about the lava script btw..
Thanx.
Code:
mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."'"));
Code:
mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE byuid='".$who."'"));
I have been trying this since many days, but no success.. i think i am missing out on something small.. :sad:
It would be great if someone helps.. I am talking about the lava script btw..
Thanx.

Was trying to do it other way.. This method is easier..
Comment