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!
Hello everyone, im trying to figure out how to get this to work, i want it so when the user hits enter or whatever "carriage return", i want it inserted in the database like that, so when i call it from the database, it will display it exactly how the user typed it.
register, its a script im writing, login and go to "view my profile" and send yourself a message, and than reply to your own message, youll see it in action
OK. I tested it out and created my profile (n00b Saibot , of course ). Good Site but the matter layout in center is cropped about 10 px on right.
While Testing the Replies thingy, i saw what you were trying to say.
the text in textarea shows right. i think you want it to show the line breaks when you display the message. Right ?
well you have to run the mesage thru nl2br(). that will solve your prob.