Kód: Vybrat vše
<?php
require_once 'db.php';
$query = "SELECT * FROM fakty ORDER BY rand() LIMIT 1";
$result = mysqli_query($con, $query);
while($row = mysqli_fetch_array($result)) {
print($row['fakt']);
echo mysqli_error($con);
}
?>