$season=$_GET["s"];
$servername = "jonescavecom.ipagemysql.com";
$username = "cnettles";
$password = "Ih8u.N0udont";
$dbname = "supernatural_essence";
$conn = new mysqli($servername, $username, $password, $dbname);
if($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql="select max(season) as m from spn_epi";
$result=$conn->query($sql);
$row=$result->fetch_assoc();
$maxSeason=$row["m"];
$mapLinks="";
for($i=1; $i<=$maxSeason; $i++) {
$mapLinks.="Season ".$i."";
if($i%5==0) {
$mapLinks.="
";
}
}
?>