<?php
date_default_timezone_set('Asia/Manila');

// Connect to MySQL
$con = mysqli_connect("localhost", "root", "", "WSAS");
if (!$con) { die("Connection failed: " . mysqli_connect_error()); }

// Force MySQL to Manila timezone
mysqli_query($con, "SET time_zone = '+08:00'");

// PHP time
echo "PHP Manila Time: " . date("Y-m-d H:i:s") . "<br>";

// MySQL time
$result = mysqli_query($con, "SELECT NOW() AS mysql_time");
$row = mysqli_fetch_assoc($result);
echo "MySQL Manila Time: " . $row['mysql_time'] . "<br>";
?>