I have my session variable store array:
$outputs = array();
while($row = mysql_fetch_array($query))
{
$_SESSION['row_id'] = $row['id'];
$outputs = $row['sport_ime'].' '.$row['sezona'].'<a href=../view/modifikacije.php> Edit</a><br>';
$_SESSION['output'] = $outputs;
}
And then on another page I call that variable:
$outputs = $_SESSION['output'];
echo ($outputs);
It just echoes one row. It is the last entry in my database.
Why doesn't it echo everything?