Ciao
ho una query che non si vuole "distinct"... allego il codice:
codice:if (!($ordine)){ $ordine = "id_foto ASC"; } $query="SELECT DISTINCT * FROM $tbl_search WHERE categoria = '$nome_categoria' AND sezione = '$nome_sezione' ORDER BY '$ordine' LIMIT $offset, $item_perpage"; $querytotal="SELECT Count(*) FROM $tbl_search"; $total=mysql_fetch_row(mysql_query($querytotal)); $string= $_SERVER['QUERY_STRING'] ;
funziona tutto tranne il DISTINCT, come mai?
ciaux![]()