<?php include_once 'class.Sql.php'; try{ $conn = new Sql(); $conn->open(); $insert = $conn->prepare("INSERT INTO usuario(fk_tipo, nome, td_cadastro) VALUES ('1', 'Vanio Almeida', NOW())"); $insert->execute(); $conn->commit(); $conn = NULL; } catch(Exception $e) { $conn->rollBack(); $conn = NULL; echo $e->getMessage(); } ?>