-1
I have the 'orders' table where all the orders that were made are, I would just add all the orders and show on the screen.
In the example above I have 8 orders, on the screen will simply have "Number of orders made 8", if you understood.
<?php
require 'conexao_pedidos.php';
$sql = query("SELECT order_id FROM orders GROUP BY order_id;");
$result=$conn->query($sql);
while($row=$result->fetch_assoc()){
?>
<div class="text-center"><?= $row ?></div>
<?php
}
?>
You want to count how many records you have in a table?
– CypherPotato
exactly and show screen.
– user161169
Enter the code you are using to query the table. In practice, just select everything in the table and count how many items came with the
count
.– CypherPotato
I added in the question the code I have so far.
– user161169