the best way to do this is via your sql code not your php code.
You'll probably need to add "ORDER BY `name`' to the end of the sql
statement or something similar.

On Oct 21, 2:57 pm, "Miguel Miranda" <[EMAIL PROTECTED]>
wrote:
> have you tried using order by ?
>
> On Tue, Oct 21, 2008 at 3:11 PM, tapupartforpres <[EMAIL PROTECTED]>wrote:
>
>
>
> > Hello.  I am assuming this is more of a .php question, but it is in
> > Cake's framework.
>
> > I have a site that I took over that had a listing of 50 wineries with
> > their name and URL pulling from the SQL data.  I added 20 additional
> > wineries but are listed with the id of 51-71.  It is pulling the id
> > and listing them in that order.
>
> > My question is how do I list the wineries by name and not by ID.
> > Thanks
>
> >http://wineworksohio.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to