Codice PHP:
$a = 1;
while ($row = mysql_fetch_assoc($res)) {
echo "<tr>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['number']."</td>";
echo "<td>$a</td>";
echo "</tr>";
$a++;
}
Codice PHP:
$a = 1;
while ($row = mysql_fetch_assoc($res)) {
echo "<tr>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['number']."</td>";
echo "<td>$a</td>";
echo "</tr>";
$a++;
}
Ciro Marotta - Programmatore JAVA - PHP
Preferisco un fallimento alle mie condizioni che un successo alle condizioni altrui.