Hey, I want to list all of my database entries to a nice html format. For every unique id there is one row displayed out from my database to my php/html. I just don't know how to do that. I tried using while loop and foreach I just don't know how to properly structure them... My query and php code looks like this:
$query = mysql_query("SELECT * FROM sport");
while($row = mysql_fetch_array($query))
{
$result = $row['sport_ime'].' '.$row['sezona'];
}