Newbie: textarea & latest X submited?
Posted: Sat Jul 20, 2002 1:58 pm
Hi,
I hope someone can help a mySQL/PHP newbie.
This is what I'm trying to do:
I've bought a books on PHP/mySQL, but it was onlye very "fresh user" related, and withing two hours i wanted to do more then the book told me.
1: I have managed to create a very simple joke DB, with categories etc. Howverer i would like to joke field to insert the correct paragraph and linebreak in the joke.
E.g I type something like (in a textarea):
Line1
Line 2
Line 4
When the joke is displayed, it returns everything on a single line. Can someone help me with how to do this, or point me to an article describing it?
2:
I would also like to add something like "The latest X jokes", can someone help me with the extraction from mySQL on this?
Really hope someone will take the time to help out.
Best regards, Spear
I hope someone can help a mySQL/PHP newbie.
This is what I'm trying to do:
I've bought a books on PHP/mySQL, but it was onlye very "fresh user" related, and withing two hours i wanted to do more then the book told me.
1: I have managed to create a very simple joke DB, with categories etc. Howverer i would like to joke field to insert the correct paragraph and linebreak in the joke.
E.g I type something like (in a textarea):
Line1
Line 2
Line 4
When the joke is displayed, it returns everything on a single line. Can someone help me with how to do this, or point me to an article describing it?
2:
I would also like to add something like "The latest X jokes", can someone help me with the extraction from mySQL on this?
Really hope someone will take the time to help out.
Best regards, Spear