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
Post a Comment