
15/02/2006, 07:11
|
| | | Fecha de Ingreso: enero-2006
Mensajes: 71
Antigüedad: 20 años, 1 mes Puntos: 0 | |
| Igual me da error.. Bien, he puesto exactamente:
$result = mysql_query("insert into tabla (campo1,campo2,campo3,campo4) values ('$variable1','$variable2', '$variable3','$variable4') where campo2 in (val1,val2,val3)", $link) or die (mysql_error());
;
Y el resultado es:
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 'where campo2 in (val1,val2,val3)' at line 1 |