php - separate a string into multiple queries -



php - separate a string into multiple queries -

lets have string so

$string = "12 days of terror";

and want break downwards string @ each space , insert each word db.

the table: tags

columns: movie, tagname

value: 102, $string

how write query this?

just split string using explode: http://php.net/manual/en/function.explode.php , insert each tag in table.

php mysql

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -