Hello,
I was woundering if anyone now how to add a message everytime you log in to the usersystem But only if ou have a pm
somthing like
Hello Jamie0112, you have 1 new message.
Like That any help?

You could do a SQL query, and if it returns a number make a popup using javascript:
<script>
alert("Hey, <? $SESSIONUSERNAME ?>, you have <? $SOMEPHP ?> new messages!")
</script>
But I don't know php so that might not be a good method![]()
Basically in your PM table SQL you need to mark if the message is new or not the best way to do this is when the message is viewed change the colum value to 1 so any unseen PM's will have a 0 value to its simple SQL then to work it out..
Want to hide these adverts? Register an account for free!