Jump to content

PHP Search Script


cksrealm

Recommended Posts

Hi all, I have written a simple search scripts that searches a database based on a customers name and prints the output to a web browser, only issue is that the customer name has to be entered exactly as it appears in the database, is there anything that I can that will for example return the data if a user just enters say a and it will show all customer that start with a

 

Hope you know what I mean

 

Regards

 

CK

Link to comment
https://forums.phpfreaks.com/topic/49312-php-search-script/
Share on other sites

Guys thanks for your comments however its not as easy as you said, the current query looks like this

 

mysql_query("SELECT number FROM customers WHERE custname='$custname'")

 

the $custname is a value that is set within the search page, i.e the field that users input the customers name. Therefore I am unable to just take a single letter from it and search for that arent. Or am I just being a fool.

Link to comment
https://forums.phpfreaks.com/topic/49312-php-search-script/#findComment-241666
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.