<?php
$db = mysqli_connect('127.0.0.1', 'root', '', 'siakad');
if (!$db) die("Connection failed\n");

$res = mysqli_query($db, "DESCRIBE penugasan_dosen");
if (!$res) die("Error: " . mysqli_error($db) . "\n");

while($row = mysqli_fetch_assoc($res)) {
    echo $row['Field'] . " - " . $row['Type'] . "\n";
}
