devsofttech_hms_ci4/scratch/check_nursing_table.php

9 lines
278 B
PHP

<?php
$conn = new mysqli('localhost', 'root', '', 'hms_data_ci4');
$res = $conn->query("SHOW COLUMNS FROM nursing_treatment_entries");
echo "COLUMNS IN nursing_treatment_entries:\n";
while ($r = $res->fetch_assoc()) {
echo "- " . $r['Field'] . " (" . $r['Type'] . ")\n";
}