![]() |
|
|
|||||||
| embarcadero.public.delphiphp.vclforphp.components.using This group is for all discussion about the use of VCL for PHP components. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi!
I build a small application using a dbgrid, query, database and datasource components. The data is showed in the grid and I can edit values on each row, but the data was not saved to database. I put in the form a button with the code below in onclick event: function Button1Click($sender, $params) { $this->Query1->Post(); } But when I click in this button I receive the messages: Warning: reset() [function.reset]: Passed variable is not an array or object in C:\program files\CodeGear\delphi for php\1.0\vcl\dbtables.inc.php on line 815 Warning: Variable passed to each() is not an array or object in C:\program files\CodeGear\delphi for php\1.0\vcl\dbtables.inc.php on line 816 Application raised an exception class ADODB_Exception with message 'mysql error: [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 'WHERE LIMIT 1' at line 1] in EXECUTE("SELECT * FROM WHERE LIMIT 1")' Callstack #0 File: C:\tmp\dbgridtest\unit1.php Line: 48 ....Other problem: I see only a fixed number of records. How to se more records on a dbgrid object?Thanks!GR |
| Sponsored Links |
|
|