Cita:
Iniciado por Fierox
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?