Viz z_moravec.
$res = mysqli_query($con, "prikaz");
To ti vrati nejaky balicek z sql. Ten je treba teprve pres php pomoci mysqli_fetch_assoc ulozit do promenne. Tu pak muzes echovat.
Zkus se podivat do manualu na priklady. mysqli_fetch_assoc mi to tam neumi ted najit, asi to uz zrusili, ale na te strance od moravec je
Example #3 Navigation through unbuffered results
<?php
$mysqli->real_query("SELECT id FROM test ORDER BY id ASC");
$res = $mysqli->use_result();
echo "Result set order...\n";
while ($row = $res->fetch_assoc()) {
echo " id = " . $row['id'] . "\n";
}
?>