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"; } } ?>