if($result=~m/You have an error in your SQL syntax/i||$result=~m/Query failed/i||$result=~m/SQL query failed/i||$result=~m/mysql_fetch_/i||$result=~m/mysql_fetch_array/i||$result=~m/mysql_num_rows/i||$result=~m/The used SELECT statements have a different number of columns/i)

if($result=~/You have an error in your SQL syntax/||$result=~/Query failed/||$result=~/SQL query failed/||$result=~/mysql_fetch_/||$result=~/mysql_fetch_array/||$result=~/mysql_num_rows/||$result=~/The used SELECT statements have a different number of columns/)