Ver Mensaje Individual
  #11 (permalink)  
Antiguo 06/09/2012, 05:52
carlosuc99
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 10 meses
Puntos: 5
Exclamación Respuesta: Error en la insercción

Cita:
Iniciado por jossss Ver Mensaje
Prueba diciendole que te muestre el error haber cual es.

Código PHP:
Ver original
  1. mysql_query("INSERT INTO akp_pilots(ID, Name, Enabled, VIDs) VALUES('$id', '$nombre', '$activo', 'a:2:{s:4:\"IVAO\";s:6:\"'.$vid_ivao.'\";s:6:\"VATSIM\";s:7:\"'.$id_vatsim.'\";}')") or die(mysql_error());
El error es
Cita:
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 '.381397.'";s:6:"VATSIM";s:7:"'.1218213.'";}')' at line 1
381397=$vid_ivao
1218213=$id_vatsim