Changeset 134 for trunk/client/modules/Elezioni
- Timestamp:
- Jun 12, 2011, 7:40:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/grafici.php
r133 r134 89 89 // totali 90 90 91 if($tema=='tour') $andcond= 'data desc,orario desc limit 0,1'; else $andcond='data,orario';91 if($tema=='tour') $andcond="select orario,data from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by data desc,orario desc limit 0,1"; else $andcond="select orario,data from ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen' order by data,orario"; 92 92 93 $res = mysql_query(" select orario,data from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by$andcond", $dbi);93 $res = mysql_query("$andcond", $dbi); 94 94 while(list($orario,$data) = mysql_fetch_row($res)) { 95 95 list ($ore,$minuti,$secondi)=explode(':',$orario);
Note:
See TracChangeset
for help on using the changeset viewer.