organizacion random en vista r

This commit is contained in:
humano 2020-04-18 08:38:16 -05:00
parent 37c952c892
commit 1113c67e1e

View File

@ -2277,10 +2277,10 @@ function banner($id,$registros,$tipo){
$advertencia ="<div class='alert alert-danger'><h1>No tiene autorización para revisar este contenido</h1></div>";
return $advertencia;
}
if(isset($_REQUEST['random'])){ $order = "ORDER BY RAND()"; }ELSE{$order ="";}
/// PRIVACIDAD
if($publico[0] =='1') {}
$consulta_principal = "SELECT control,id,form_id , FROM_UNIXTIME(form_datos.timestamp) as fecha FROM form_datos WHERE form_id = '$id' GROUP BY form_datos.control ";
$consulta_principal = "SELECT control,id,form_id , FROM_UNIXTIME(form_datos.timestamp) as fecha FROM form_datos WHERE form_id = '$id' GROUP BY form_datos.control $order ";
$link=Conectarse();