creation playlist fin
This commit is contained in:
parent
2461971a24
commit
e1831b92e8
@ -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);
|
||||
"
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user