Stuff
public php v1 · immutablefor($a=0;$a<mysql_num_rows($result);$a++) { $row = mysql_fetch_array($result); $categoria=$row[0]; if ($a==(mysql_num_rows($result)-1)){ echo utf8_encode($categoria)." (".$a.")."; }else{ echo utf8_encode($categoria)." (".$a.") - "; }}