Ask a Question related to PHP Development, Design and Development.
-
®ed Eye Media - Richard Grove #1
MySQL by Letter
What would you guys say was the easiest and best way to get a list of users
details by letter.
Eg: getusers.php?l=A
Is there a MySQL command that I can use to get data by firstletter of a
specific field?
Or do I have to retrieve all and then loop through only showing relevant
results?
The second way seems a big waste of resources.
Many Thanks
Richard Grove
®ed Eye Media - Richard Grove Guest
-
Changing from half letter to letter document size
I have a document that was created in the size it will be (5.5" x 8.8") and it will be punched on the spine side. It has a slightly larger margin on... -
Missing letter, letter replaced
I have save to postscript format from Indesign CS2 before distilling to pdf format. My platform is Max OS X, 384 MB ram. Issue: When I distill... -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
Capital letter to small letter in Flash MX
Hi there I am doing a search tool in Flash MX and using a .xml as the archive containing the text At the moment I am using "indexof" as the... -
letter by letter text display
My friend had an idea for a site, where he wanted text to be typed out letter by letter in a movie. Not inputed by the user, but displayed by the... -
®ed Eye Media - Richard Grove #2
Re: MySQL by Letter
"®ed Eye Media - Richard Grove" <info@redeyemedia.co.uk> wrote in message
news:407124a2$0$95317$65c69314@mercury.nildram.net ...users> What would you guys say was the easiest and best way to get a list of> details by letter.
> Eg: getusers.php?l=A
>
> Is there a MySQL command that I can use to get data by firstletter of a
> specific field?
> Or do I have to retrieve all and then loop through only showing relevant
> results?
>
> The second way seems a big waste of resources.
> Many Thanks
>No Worries,> Richard Grove
>
>
Sometime the easiest things are staring you straing in the face.
Richard Grove
®ed Eye Media - Richard Grove Guest
-
Jeppe Uhd #3
Re: MySQL by Letter
®ed Eye Media - Richard Grove wrote:
SELECT ... FROM ... WHERE specific_field LIKE 'a%'> What would you guys say was the easiest and best way to get a list of
> users details by letter.
> Eg: getusers.php?l=A
>
> Is there a MySQL command that I can use to get data by firstletter of
> a specific field?
--
MVH Jeppe Uhd - NX [url]http://nx.dk[/url]
Webhosting for nørder og andet godtfolk
Jeppe Uhd Guest
-
Chris Hope #4
Re: MySQL by Letter
®ed Eye Media - Richard Grove wrote:
Pretty standard sql:> What would you guys say was the easiest and best way to get a list of
> users details by letter.
> Eg: getusers.php?l=A
>
> Is there a MySQL command that I can use to get data by firstletter of a
> specific field?
> Or do I have to retrieve all and then loop through only showing relevant
> results?
select fieldname from tablename where fieldname like 'a%'
Chris
--
Chris Hope
The Electric Toolbox Ltd
[url]http://www.electrictoolbox.com/[/url]
Chris Hope Guest
-
Unregistered #5
Re: MySQL by Letter
this was very informative, however, I wonder if there's a way to find all the words that start with "any number or any special character" instead of a "letter". By example, your explanation would work in finding names of bands that start with "B", you click B and you get bands like "Blink 182" or "Bee Gees", but How can I find names that start with numbers, by clicking # and getting bands like "311", "1000 Maniacs".
Unregistered Guest



Reply With Quote

