Exemplo n.º 1
0
function add_comment($content, $idUser, $id, $type)
{
    switch ($type) {
        case 'a':
            insert_comment_artist($idUser, $id, $content);
            break;
        case 's':
            insert_comment_schedule($idUser, $id, $content);
            break;
        default:
            throw new Exception("Pas de type correct définis");
            break;
    }
}
Exemplo n.º 2
0
function add_comment($content, $idArtist)
{
    insert_comment_artist($_SESSION['idUser'], $idArtist, $content);
}