As the title says I'm trying to display numbers between 0.1-1.9 as Season 1 then 2.0-2.9 season 2 etc., that's what I have tried so far
$sql="SELECT Patch_No, Created FROM info ORDER BY Patch_NO DESC";
$result = $conn->query($sql);
while($data = $result->fetch_assoc()){
if(!isset($seasons[ceil($data['Patch_No'])])||is_int($data['Patch_No'])&&ceil($data['Patch_No'])==$data['Patch_No']+1){
$seasons[ceil($data['Patch_No'])]=ceil($data['Patch_No']);
echo '<hr><i>SEASON '.ceil($data['Patch_No']).'<br></i><hr>';
}
echo '<a href="delete_patch.php?Patch_No='.$data['Patch_No'].'" alt="'.$data['Created'].'" title="'.$data['Created'].'">
'.$data['Patch_No'].'</a><br>';
}
echo '<hr><hr><a href="index.php">CMS</a>';
And here is the result: http://i.imgur.com/VeN8pD8.png pretty close