You can use the mysql LOWER () function:
$query=strtolower($query); //Query to lower case $raw_results = mysql_query("SELECT * FROM posts WHERE (LOWER(`Number`) LIKE '%".$query."%') OR (LOWER(`Title`) LIKE '%".$query."%') OR (LOWER(`Text`) LIKE '%".$query."%') ") or die(mysql_error());
However, the mysql function in php is deprecated, you should use mysqli instead of mysql.
source share