Files
2024-04-19 14:04:41 +07:00

21 lines
580 B
PHP

<?php
$q = strtolower($_GET["q"]);
if (!$q) return;
include("../../core/main.php");
// Replace "TABLE_NAME" below with the table you'd like to extract data from
$data = $db->query( "SELECT icd_code FROM icd" )
or die( mysqli_error($connect) );
// Replace "COLUMN_ONE" below with the column you'd like to search through
// In between the if/then statement, you may present a string of text
// you'd like to appear in the textbox.
while( $row = mysqli_fetch_array( $data )){
if ( strpos( strtolower( $row['icd_code'] ), $q ) !== false ) {
echo $row['icd_code']."\n";
}
}
?>