Ver Mensaje Individual
  #13 (permalink)  
Antiguo 25/06/2009, 16:41
Gaug
 
Fecha de Ingreso: junio-2009
Mensajes: 250
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: Tomar el último valor de un campo en la BD.

EDIT: Ahora tengo este problema...


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 'like 'clave%' order by llave ASC limit 0,1' at line 1

Si pongo ésto:

Código PHP:
$sintaxis=$data[0]."%";
  
$query_Recordset "SELECT * from reg_obra like '".$sintaxis."' order by llave ASC limit 0,1"
'clave' es el valor de '$data[0]', lo he hecho antes y no me daba problemas el '%', ¿será porque es un array? ¿Cómo podría arreglar ésto?

Saludos.

Última edición por Gaug; 25/06/2009 a las 18:42