Saturday, July 4, 2009

Re: generateList() returning SQL error.

thanks for the reply! im currently using 1.2 following a book thats
using 1.1 i guess. find('list') worked perfectly.

ill make sure to post the models next question i have.

is there a way to have my code formatted as code on here? new to
google groups and groups in general.

On Jul 4, 10:03 pm, Hendry <hendry....@gmail.com> wrote:
> What cake version are you using now? If it is cake 1.2, generateList
> is deprecated, you should use find('list').
> Also, would be more helpful if you post your Book and Author model and
> its relationship here.
>
> ~hendry
>
> On Sun, Jul 5, 2009 at 12:53 PM, centr0<centrosc...@gmail.com> wrote:
> > the error msg is:
> > 1064: You have an error in your SQL syntax; check the manual that
> > corresponds to your MySQL server version for the right syntax to use
> > near 'generateList' at line 1
>
> > im using xampp on win xp so im guessing everything is up to date.  my
> > db_config uses mysqli.
>
> > any ideas?  thanks in advance for response.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: