Jump to content

Help with a search


Riparian

Recommended Posts

Trying to search for mobile numbers in a mysql table

 

eg 123 456789

 

How do i remove the space between the 3 and 4 in the mysql query

 

I use str_replace in the posted valiable

I can use trim() but that is leading and trailing

using LIKE does not seem to work

 

Current Query

 

$C_result=mysql_query("select * from clients where (phone LIKE \"%$_POST[PhoneSearch]%\") or (mobile LIKE \"%$_POST[PhoneSearch]%\") ") or die('145'.mysql_error());

 

Any suggestions greatly appreciated

 

Link to comment
https://forums.phpfreaks.com/topic/152161-help-with-a-search/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.