Jump to content

where clause first letter?


karimali831

Recommended Posts

Hi,

 

I am using while loop to fetch rows of users and want to add an A - Z search, if the user clicks "S" for example it should return

all results where the first letter of string (whether upper case or not) is equal to "S" or "s". Can I do this with WHERE clause?

 

Thanks anyone.

Link to comment
https://forums.phpfreaks.com/topic/253936-where-clause-first-letter/
Share on other sites

Hi,

 

I am using while loop to fetch rows of users and want to add an A - Z search, if the user clicks "S" for example it should return

all results where the first letter of string (whether upper case or not) is equal to "S" or "s". Can I do this with WHERE clause?

 

Thanks anyone.

 

WHERE whatever LIKE 's%'

  • 2 weeks later...
  • 2 weeks later...

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.