first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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,jenis_penyakit 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']."-".$row['jenis_penyakit']."\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user