1
I would like to add a sequential numerical enumerator (1, 2, 3, ...) to names that are obtained through a query.
The end result would be:
sequencial | Nome
-----------------
1 | João
2 | Pedro
3 | ...
The code I currently use:
echo '</div>';
echo'<div id="tabs-3">';
$sql = "select * from Tabela where Campos";
$qr = mysql_query($sql) or die(mysql_error());
while($exibe = mysql_fetch_array($qr))
{
echo '<li class="ui-widget-content"><h3><a href="NaoautorizadoMostrar.php?id='.$exibe['id'].'">'.$exibe['Nome'].'</h3></a></li>';
}
Where are you creating the
<ul>
?– Silvio Andorinha