假设我有一个字符串
$string = "12 Days Of Terror";
和我想打破这个字符串在每个空格,并插入每个单词到我的数据库。
表:tags
列:movie
, tagname
取值:102
, $string
如何编写这个查询?
使用explosion: http://php.net/manual/en/function.explode.php拆分字符串,然后在表格中插入每个标签
假设我有一个字符串
$string = "12 Days Of Terror";
和我想打破这个字符串在每个空格,并插入每个单词到我的数据库。
表:tags
列:movie
, tagname
取值:102
, $string
如何编写这个查询?
使用explosion: http://php.net/manual/en/function.explode.php拆分字符串,然后在表格中插入每个标签