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.