$dbh = BaboonDB->connect(); $sth = $dbh->prepare('INSERT INTO anuncios (usuario,titulo,mensaje,categoria,estado,pais,imagen,image_align,expiracion,firma) VALUES(?,?,?,?,?,?,?,?,?,?)') or die("Couldn't prepare statement: " . $dbh->errstr); $sth->execute($user,$title,$msg,$cat,$state,$country,$img,'left',$expiration,$name) or die("Couldn't execute statement: " . $sth->errstr); $dbh->disconnect;