Sunday, February 27, 2011

Re: Can't Save to DB

On Feb 27, 2011, at 09:01, theweirdone wrote:

> I'm new to CakePHP, and I'm working on a personal project.
> I've run into a small problem, which is I can't save certain things to
> the database. I've tried a few different sources for help (3 seperate
> forums) with no success. So I'm trying here now. The only problem is
> there's no formating in this, so I'll just supply the link to the
> forum post.
>
> http://www.daniweb.com/forums/thread349932.html

After glancing at your code, I don't know why it doesn't work, but I notice you're using a for loop to save each episode separately. Why not use updateAll() to save them all at once?


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: