I'm trying to inert into some table, and i get the genral error. Here's my code below.
NOTE: I used this very connection on another update query and it works fine.
Another thing, What's the difference between bindParam() and bindValue() ?
$query = $dbh->query("INSERT INTO music SET
                      uid = ?,  title = ?,
                      album = ?, artist = ?,
                      year = ?, genre = ?,
                      albumart = ?, audio = ?,
                      time = ?, perms = ?
 ");    
$query->bindParam(1, $uid);
$query->bindParam(2, $title);
$query->bindParam(3, $album);
$query->bindParam(4, $artist);
$query->bindParam(5, $year);
$query->bindParam(6, $genre);
$query->bindParam(7, $art);
$query->bindParam(8, $song);
$query->bindParam(9, now());
$query->bindParam(10, $download);
$query->execute();
$check_exc = $query->execute();
if ($check_exc) {
    $new_id = $dbh->lastInsertId('sid');
Thanks.
 
    