how to search exact number
this code is working like this
if i search 24626838(this is complete no) it is showing nothing
after that if
I guess the problem is here:
number LIKE '$str%'
Don't use that way. Instead, try giving this way:
number = '$str'
So that it performs a strict SELECT
instead of search. When you give a %
, it might expect something else to be present (or not, I am not sure about this).
Also, it is not a good idea to use LIKE
for numbers. This is just a suggestion.