SET NAMES 'utf8'; INSERT INTO datos (identificador, estado, nombre, clave, correo, telefono, ciudad, fecha_de_registro) VALUES ('1111', 'recién', 'Terce', 'contra', 'corre', '1234567890', 'ciudad', '2014-11-06');
Pero en PHP, este código:
Código PHP:
$agregar = "SET NAMES 'utf8'; INSERT INTO datos (identificador, estado, nombre, clave, correo, telefono, ciudad, fecha_de_registro) VALUES ('1111', 'recién', 'Terce', 'contra', 'corre', '1234567890', 'ciudad', '2014-11-06');";
//Ejecutar instrucción:
$insertar = $conexión->query($agregar);
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 datos (identificador, estado, nombre, clave, correo, telefo' at line 1
¿Dónde está el error
![enojado](http://static.forosdelweb.com/fdwtheme/images/smilies/enojado.png)