-3
How are you trying to fetch? Here’s a simple code from a COUNT(*) using Mysqli.
$db = new mysqli('localhost', 'usuario', 'senha', 'easycontrol');
if ($db->connect_errno > 0){
die('Impossível se conectar ao banco [' . $db->connect_error . ']');
}
$result = $db->query("select count(*) from ec_despesas");
$row = $result->fetch_row();
echo 'n: ', $row[0];
It’s simpler you run one
desc nome_tabela
and put its structure as text instead of an image.– rray
Have you tried anything? if you have put the source code, it is total of table items or total of items for a 'category'?
– rray