Well in the case, my question is as follows, I do a select to database with the criteria I want it to have. How can I then do a while to show these results, which were fetched from the database.
Thank you.
Well in the case, my question is as follows, I do a select to database with the criteria I want it to have. How can I then do a while to show these results, which were fetched from the database.
Thank you.
Would that be?
$query = "SELECT...";
$sql = mysqli_query($conexao, $query);
while($dado = mysql_fetch_array($sql)){ // Enquanto houver dados ficará em loop
$a = $dado['coluna1']; //recupera o dado do array
$b = $dado['coluna2'];
echo $a."-".$b."<br><br>"; //exibe o dado
}
Your question is very comprehensive, first look at how it works to find the data, follow a referral link:
So, if you have any questions post here.
Embrace