Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query fields that start with a number

Status
Not open for further replies.

TheDust

Programmer
Aug 12, 2002
217
US
I am building an index for our Client List page, which lists over 400 clients of ours. I want to change the SELECT query that returns the resultset that is shown to select ONLY records that start with a certain letter. This is being done with the addition of the following code to my MySQL query:

Code:
$query_Clients .= "WHERE clientName LIKE '".$_GET['letter']."%' ";

However, I'm having trouble finding information on how to constrain results to entries where clientName starts with a numerical value. Has anyone ever encountered this problem?
 
i don't see that it's a problem

if the value of letter is a digit, the query will still work as intended

rudy
SQL Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top