Jump to content

Listing query results


Jester

Recommended Posts

Merry Meet!

Now I have a big problem with php + mysql

the main source of the problem is query so I posted this up here;

My problem:

 

Now I am coding a site for recepies and I want my users to be able to list the recepies according to their first letter (ex all the recepies starting with a)

 

Now I tired really hard to the Left function but I just haven\'t been able to make sql to return the result of a query like this:

we have a column say name

I wnt eury to match up the first letter of every entry in name with the one given by the user...

 

Spent almost 3 hours playing with the \"LEFT()\" thingie but it doesn\'t work theway it should =)

 

Kind Regards

The Jester

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.