I have a made a MySQL table, and I've been trying to make it answer on my site. As for now, it picks all the columns in my rows, and I wanted to pick a specific column.
Does anyone know a better way to make it echo on your page?
<?php
$data = "SELECT * FROM anmeldelser";
$result = $connection->query($data);
while($row = $result->fetch_array()){
echo "<b>Kundenavn: </b>" . $row['Kundenavn'] . "<b> Kommentar: </b>" . $row['Kommentar'] . "<b> Dato: </b>" . $row['Dato'];
}
?>`
This gives the result of every row in my db. I want to pick one random or just be specific about which one I want to place in which div.
Thanks in advance.