1
I see my example in db:
Code:
<?php
$mysqli = new mysqli("host", "user", "senha", "db");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$count = 1;
if ($sth = $mysqli->query("SELECT * FROM artistas")){
while ($row = $sth->fetch_assoc()){
echo $count . " - " . $row['cantor'] . "<br>";
$count++;
}
}
Upshot:
It worked out buddy! Thank you very much...
– Victor Freitas
@Victorfreitas I’m glad it worked, but I ask you to mark the answer as accepted so that others who have the problem can solve tb
– Woton Sampaio