PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i've created a page that posts messages to users. however, i can't get it to post to all the users. i have a field called 'notetouser', and all i want to do is simply add on to what i already have. update just replaces it. i think i need to use the join command but i'm not familiar with it?
$alright = mysql_query("e;UPDATE main SET notetouser=CONCAT(notetouser, '$dapost')"e;,$nhs);
however, when i try to 'print' my code, it comes up as one line. i've tried using '\n' but it doesn't work, and i've also tried using the escape slash '\\n' but it still doesn't work. any ideas?
duh, i forgot about that. and...haha yes! that worked perfect. thanks.
basically i created a 'post message' script that added a message to all user accounts, then when a user logged in it would show that message on their account.