1
0
forked from qwerty/milfs

Correccion bug json

This commit is contained in:
humano 2014-10-07 06:28:54 -05:00
parent 874b726a25
commit 7c570f8dd3

View File

@ -14,18 +14,23 @@ require ('funciones/convert.php');
$id_campo = $campo[0]; $id_campo = $campo[0];
$link=Conectarse(); $link=Conectarse();
/*
$consulta = " SELECT distinct(contenido) as data, control,form_datos.form_id as id, timestamp $consulta = " SELECT distinct(contenido) as data, control,form_datos.form_id as id, timestamp
FROM form_datos FROM form_datos
WHERE form_datos.id_campo = '$id_campo' WHERE form_datos.id_campo = '$id_campo'
AND form_id = '$id' AND form_id = '$id'
"; ";
*/
// echo $consulta; $consulta = "SELECT contenido as data , form_id as id, control, GROUP_CONCAT(id ORDER by timestamp desc ) as identificador
FROM `form_datos`
WHERE form_id = '$id'
AND id_campo ='$id_campo' $valor
group by control
ORDER BY orden desc";
//echo $consulta;
mysql_query("SET NAMES 'UTF8'"); mysql_query("SET NAMES 'UTF8'");