Unnamed
public php v1 · immutable<?php include ("conexion.php");$result= mysql_query("SELECT categoria from categoria order by categoria asc"); while ($row = mysql_fetch_array($result)){ $categoria=$row[0]; $total = mysql_num_rows($result); if (current($result)==$total){ echo utf8_encode($categoria)." . "; }else{ echo utf8_encode($categoria)." - "; } }?>