Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Total New Messages, inbox..
HmmZ
post Jun 17 2005, 11:04 AM
Post #1


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



i need a line of php for picking out the new messages a user has received since his last visit, i got a $userlastvisit variable wich is updated once the user logs in, but i can't figure out the line i need for $msgnew.

Any help appreciated
Go to the top of the page
 
+Quote Post
HmmZ
post Jun 17 2005, 08:57 PM
Post #2


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



Hello?ohmy.gif

Please, i need to know and i can't figure it out.

I thought of one thing, but it would require yet another field in my userstable :X
$qry=mysql_query("SELECT messages where username='$user' and savetime='$userlastvisit'");

but i don't think that works....aaaaaaarggh, please help sad.gif
Go to the top of the page
 
+Quote Post
beeseven
post Jun 18 2005, 05:03 PM
Post #3


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



What I would do is to have a field in the table for the messages that says if it has been read or not (like a boolean field), and then when the user reads the message it would update the table and change it to read. Then you could have it count the number of messages that haven't been read that way.
Go to the top of the page
 
+Quote Post
HmmZ
post Jun 19 2005, 11:17 AM
Post #4


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



Yea that could actually work just the way it should be, thanks!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Add Flashing Inbox To Invisionfree Forum(1)
  2. Inbox Dollars(29)
  3. Jets N Guns: Total Destruction(5)
  4. Inbox.com Or Gmail?(53)
  5. Adobe Photoshop Cs2 Total Training Video Workshop(16)
  6. Delete Mail Messages 1 Times In 24 H(3)
  7. Free Text Messagers (comp To Phone)(6)
  8. Gaining Total Control(0)
  9. Post Disappeared(1)
  10. Webmail Problem? [resolved](3)
  11. Total Lunar Eclipse - August 28(2)
  12. Total Network Inventory Semi Review(1)
  13. Medieval Ii: Total War(7)
  14. Tonight's Total Lunar Eclipse Set To Be Best In Years(10)
  15. My Opinion About Web Design(5)
  1. Total Lunar Eclipse March 3rd(0)
  2. Thunderbird, Gmail Problem(5)
  3. Aspin.com(1)
  4. Total Indecision(5)
  5. Longhorn Will Steal Our Freewill(27)
  6. Rome: Total War(0)
  7. Fake Paypal Email Messages(19)
  8. Minus One New Messages?(6)
  9. Activex Error Messages? And Popups?(2)
  10. Rome: Total War(9)
  11. Http Error Messages(0)
  12. Medieval Total War(0)
  13. Gxtrap. Hits 1,000 Total Page Views(3)
  14. Trap17.net Account Question(5)
  15. Total Computers(0)


 



- Lo-Fi Version Time is now: 30th August 2008 - 03:17 AM