Cita:
Ese 5 es un valor que capturo en una variable $cantidad que es el valor que le doy al limit 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 ''5'' at line 1
Cita:
Ya probe poniendo yo los numeros de limit y siempre el mismo error pruebo en modo consola en mysql y si lo realiza pero con php no puedo y el error es el mismo alguna idea?? o alguna otra forma de hacerlo $sql = "select id_est from alumno where id_curso = '1' and id_seccion = '1' and id_modalidad = '1' and id_sede = '2' limit '$cantidad'";