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.

 

 

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.