First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?php
include "db.php";
$tableName = "schools";
if ($argc != 3) {
echo("Error: incorrect parameters\n\n");
exit();
}
$tableName = $argv[1];
$recordNum = intval($argv[2]);
$query = "SELECT * FROM $tableName WHERE record_num = $recordNum";
$results = db_query($query);
if (db_num_rows($results) == 0) {
echo("Error: record not found - $recordNum\n\n");
exit();
}
$row = db_fetch_assoc($results);
print_r($row);
echo("\n");
?>