PHP mySQL RLIKE similar expanded + or - 5 -
using rlike able find people similar surnames or telephone numbers.
mysql_query("select * electors (surname rlike '$surname' or telephone rlike '$telephone') limit 9"); 1 - problem need priorities surnames , go telephone numbers second total limit of 9 records.
2 - want concatenate first line of address address1 , postcode find similar records
this way if house number 14 , postcode zz18mp find nearby houses. eg. 12 zz18mp. households aren't in system can't increment 1, needs closest match.
how this.
you can use full text search functions , ranks suranmes , telephone numbers. based on rank, filter our data.
here tutorial start
http://devzone.zend.com/26/using-mysql-full-text-searching/
note: full-text searches supported myisam tables only
Comments
Post a Comment