query( "SELECT NAMA FROM m_pasien" ) 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['NAMA'] ), $q ) !== false ) { echo $row['NAMA']."\n"; } } ?>