Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/09/2011, 13:19
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Respuesta: Pasar el valor de un input a una variable

Lo he puesto asi
$query_grados = sprintf("SELECT * FROM grados1 where idlicenciatura=".$_REQUEST['idlic']);


pero me manda 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 '' at line 1