MySQL Forums
Forum List  »  PHP

Query TRANSACTION
Posted by: Raphael Milani
Date: August 31, 2005 08:58AM

Hello Guys ...i´m try to excute this command in mysql_query():

$query="START TRANSACTION;";
$query=$query." "."INSERT INTO artigo (titulo,chamada,artigo,autor,id_categoria,data_publicada,destaque,id_imagem) VALUES ('$vTitulo','$vChamada','$vArtigo','$vAutor','$id_cat', '$vdata','$vDestaque','$id_imagem');\n";
$query=$query." "."COMMIT;";

but return this :

Erro na Gravação.:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; INSERT INTO artigo (titulo,chamada,artigo,autor,id_categoria,

Options: ReplyQuote


Subject
Written By
Posted
Query TRANSACTION
August 31, 2005 08:58AM
August 31, 2005 09:44AM
August 31, 2005 10:28AM
August 31, 2005 11:33AM
August 31, 2005 12:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.