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,16 +14,21 @@ require ('funciones/convert.php');
$id_campo = $campo[0];
$link=Conectarse();
/*
$consulta = " SELECT distinct(contenido) as data, control,form_datos.form_id as id, timestamp
FROM form_datos
WHERE form_datos.id_campo = '$id_campo'
AND form_id = '$id'
";
*/
$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;