How to store each line of text input into a new row in MySQL

Hey guys basically i have a html form like so

input.html

<center><form method="post" action="post.php">
<textarea name="comments" cols="110" rows="23">
http://localhost/dingdong

http://localhost/123

http://localhost/1234
</textarea><br></center>
<center><input type="submit" value="Hit me baby" /></center>

My question is how can i submit 1 line of text into 1 row instead of all the submitted data going into 1 row?

I have been looking at uses explode() and would like some advice on this or a better method.

All help is deeply appreciated, thankyou.

Sorry for my english

You’re saying 1 row. By this do you also mean 1 field in that 1 row, or will the lines of text be split across fields within each row?

Sponsor our Newsletter | Privacy Policy | Terms of Service