<?php
$conn = new mysqli('127.0.0.1', 'koojanasanura_mydb', 'Koojana@123', 'koojanasanura_Methsisila');
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
echo "Packages Table:\n";
$res = $conn->query("DESCRIBE packages");
while($r = $res->fetch_assoc()) echo $r['Field'] . " (" . $r['Type'] . ")\n";
echo "\nGallery Table:\n";
$res = $conn->query("DESCRIBE package_gallery");
while($r = $res->fetch_assoc()) echo $r['Field'] . " (" . $r['Type'] . ")\n";
?>
