I am a beginner to php and mysql ,so bear with me if my question sounds dumb.
I have a multi-line text and I need to store each line of that into a row of my table in mysql. I should mention that each line's string is separated by comma (",") as delimiter.
Suppose that I have the following text:
title1,name1,url1,number1
title2,name2,url2,number2
title3,name3,url3,number3
I am not sure if I need to use
$lines=explode("\n",$mytext)
to explode the multi-line text because it would give me an array of lines and I do not know how to split each line to separate string variables and insert them into a table row.
Any help would be much appreciated.