Jump to content

filtering results by first letter using an URL variable


mishasoni

Recommended Posts

Hi,

 

I have a MySQL db with a table that has a field called "NameLast".

I am trying to figure out how to filter the results using a URL variable based on the first letter of the records.

 

eg, http://mydomain.com/page.php?firstletter=A

 

so then all records with the first letter of "A" in the NameLast column gets displayed.

 

This seems like it should be simple enough but I am a PHP newbie and would welcome a bit of assistance.

 

Thanks.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.