I want to put all words of a string in different rows of a table in mysql. for example.
$mystring="this is an ugly string"
i want to put in mysql table like
i think first i have to use explode function then use for each loop, but im not able to write the correct sytax, can someone help me with the syntax please ?