I am getting this error when I am trying to get data
CDbCommand failed to execute the SQL statement: 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 '14 LIMIT 10' at line 1. The SQL statement executed was: 14 LIMIT 10
CDbCommand failed to execute the SQL statement: 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 'Array LIMIT 10' at line 1. The SQL
statement executed was: Array LIMIT 10
In your #4 post it looked like you fed the result from a DAO query to a CSqlDataProvider. The current error message indicates you don’t pass a valid dataprovider instance (IDataProvider implementation) to the view.
BTW did you try to use the original SQL string with a CSqlDataProvider?
CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1064 Erreur de syntaxe près de 'VARCHAR, 20)' à la ligne 1. The SQL statement executed was: INSERT INTO form1 (lable ,field ,type, size) VALUES (firstname, fname, VARCHAR, 20);