I have a MySQL databse, and I want to set up a system where a user can type in the first few letters of an entry, and the database will, when submit is clicked, show all the entries that start with those letters.
i.e. user types in Des
Database returns Desert, Dessert, Destiny, etc.
I would use code similar to the following:
$SearchVariable = "SELECT * FROM 'table' WHERE 'Name' STARTS WITH $SearchText"
mysql_query ($SearchVariable)
Would that work?
If this works, is there a faster way to do it?
KITTfan2K