<?php
$db = mysqli_connect('127.0.0.1', 'root', '', 'siakad');
if (!$db) die("Connection failed");
$res = mysqli_query($db, "SELECT COUNT(*) as c FROM ref_perguruan_tinggi");
if (!$res) die(mysqli_error($db));
$row = mysqli_fetch_assoc($res);
echo "Count: " . $row['c'];
