I have a small problem :) I was searching the web but didn\'t find any solutions.
I have a value like this (got it from $_GET[])
tag1, tag2, tag3, tag4
This will work out according to your result
$tagData = array();
$tagList = explode(",","tag1,tag2,tag3,tag4");
foreach ($tagList as $key=>$value) {
$tagData[] = '("' . $key . '", "' . $tagList[$key] . '")';
}
$query = 'INSERT INTO tags (id,tag) VALUES' . implode(',', $tagData);
echo $query;die;
mysql_query($query);