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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -