PDA

View Full Version : PHP - Search...


jovel
01-19-2008, 04:44 AM
Hi, I am interessing for php search script.

If I click on one of the alphabet characters, I wont results only of words who is the first character the character that I have clicked... I hope that you understand me...

Example

if I click on button "B", the words that I wont must start with "B"
like: Baa, Blind, Board....

Thanks!!!

kc8yds
01-19-2008, 07:41 PM
i'm going to go on a limb, and guess you are already familiar with php / mysql

$letter='a';
select... where text like \"$letter%\"

if you do not understand my bad example, post, and I'll rewrite it to explain a little farther

jovel
01-21-2008, 08:21 AM
Thanks, but I am apprentice of php yet. Please if you can unfold this script nearly to me?