Ver Mensaje Individual
  #11 (permalink)  
Antiguo 19/09/2012, 04:41
tasmany94
 
Fecha de Ingreso: septiembre-2012
Mensajes: 66
Antigüedad: 11 años, 7 meses
Puntos: 4
Respuesta: Error en mysql_query

Cita:
Iniciado por Fierox Ver Mensaje
te falta el value, prueba asi:
Código PHP:
mysql_query ("INSERT INTO $db_to.$tb_to_name VALUES ( SELECT *  FROM $db_from.$tb_from_name WHERE Estado= 1 AND ID_User= $ID_user)")or die(mysql_error()); 
gracias pero me sige sin funcionar..

me da este error :

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 'SELECT * FROM usuarios.usuarios WHERE Estado= 1 AND ID_User= )' at line 1

creo que es la variable..puede ser?