Re: Can't Save to DB

2011-03-01 Thread theweirdone
So you were right. The problem was the date validation. I've fixed it, and it's now saving. The only annoying thing is that MySQL saves date in ymd format. I suppose I can live with that. Thanks everyone for all your help. I'll probably be back soon with another question. :-P -- Our newest sit

Re: Can't Save to DB

2011-02-28 Thread theweirdone
So I know this isn't strictly speaking CakePHP anymore and just basic php, but I'm having difficulty getting it into the correct CakePHP format, so I think it counts. Here's the for loop I'm using to get it into the correct format (just in testing phase, it print_r's all the results): foreach($e

Re: Can't Save to DB

2011-02-28 Thread theweirdone
Hey Thanks already for all the help. I've changed my code, here's the new controller: function addAll($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid show id entered', true)); //$this->redirect('/episodes'); } $show = $this->requestAct

Re: Can't Save to DB

2011-02-28 Thread theweirdone
So i've changed the save() to updateAll() with the following: if($this->Episode->updateAll( array('Episode.name' => $episode['name']), array('Episode.number' => $episode['number']), array('Episode.description' => $episode['description']), array('Episode.date

Can't Save to DB

2011-02-27 Thread theweirdone
Hi, 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 th