Código SQL:
Ver original
$palabra = $tags; $array = explode(",",$palabra); foreach ($array AS $tagsimple) { $query = "INSERT INTO Tags (Tag) VALUES ('$tagsimple')"; $result = mysql_query($query, $dbConn) OR die(mysql_error()); } header( 'Location: prueba.php?add=true' ); die;