creation playlist fin

This commit is contained in:
Wilfried BRIGITTE 2024-06-03 19:02:08 +02:00
parent 2461971a24
commit e1831b92e8

View File

@ -50,9 +50,10 @@ class Model_music extends CI_Model {
}
public function createPlaylist($name_playlist){
$playlist_id = mt_rand(1, 10);
$name_playlist_escaped = $this->db->escape($name_playlist);
$query = $this->db->query(
"INSERT INTO playlist VALUES (1, $name_playlist_escaped);
"INSERT INTO playlist (name) VALUES ($name_playlist_escaped);
"
);
}