Can anyone please help me to understand the MySQL select query behavior and help me to solve this,
How to show no results found message based on user search?
Table Structure:
CREATE TABLE `dummytable` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mobile` int(11) NOT NULL,
`welcome` varchar(150) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
Question: Why I am getting this result?
SELECT * FROM `dummytable` WHERE `mobile` = '\'\'' LIMIT 50


mobile= 'okay' is also results the same. Anyone can help to solve this