Re: Database Error: SQLSTATE[42000] error cakephp 2

2014-07-01 Thread vbpupil
Thanks AD7six, this fixed my issue and is something that I trip over a lot. I will certainly try to remember this in future. On Friday, June 20, 2014 3:54:27 PM UTC+1, vbpupil wrote: > > hey Guys > > im getting this error > > Database Error > > *Error: * SQLSTATE[42000]: Syntax error or access

Re: Database Error: SQLSTATE[42000] error cakephp 2

2014-06-20 Thread AD7six
This is one of the many symptoms of the model you're calling not being of the class you think it is. There's a longer description on stack overflow but in this case: > $this->Invoices Model names are by convention singular - so most likely changing

Database Error: SQLSTATE[42000] error cakephp 2

2014-06-20 Thread vbpupil
hey Guys im getting this error Database Error *Error: * SQLSTATE[42000]: Syntax error or access violation: 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 'saveMyInv' at line 1 *SQL Query: * saveMyInv