Newsgrupos.com  

Retroceder   Newsgrupos.com > Forum > Newsgroup es.comp.lenguajes.* Foro > Newsgroup es.comp.lenguajes.php
Registrarse Preguntas Frecuentes Lista de Foreros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 08-02-2008, 10:01:39
Enigma939
 
Mensajes: n/a
Predeterminado ¿donde está el fallo a la hora de insertar en MySQL?

$sql = "INSERT INTO bd (a, b, c, d, e, f) VALUES ('$a', '$b', '$c', '$d',
'$e', '$f'')";
mysql_query($sql,$con) or die(mysql_error());


al insertar esto me devuelve el siguiente error:

you have an error in your SQL syntax; check the manual corresponds to your
MySQL server version for the right syntax to use near ' c, d, e, f) VALUES
('casa','perro','coche',' at line 1


Muchas gracias por vuestra ayuda.


--



Responder Con Cita
Alt Today
Advertising
Google Adsense
 
This advertising will not be shown
in this way to registered members.
Register your free account today
and become a member on
Newsgrupos.com
Standard Sponsored Links

Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado






Powered by: vBulletin, Versión 3.6.8
Derechos de Autor ©2000 - 2008, Jelsoft Enterprises Ltd.

LinkBacks Enabled by vBSEO 3.1.0 © 2007, Crawlability, Inc.