Ok found the problem. The record was being saved, but I had left off one field which was the one used to determine what was displayed in the grid. All sorted now. Thanks for your help.
Just one issue, when adding in the hidden field for field that is used to create the recordset, I am getting this error in the error log and a blank screen because of it.
[Thu Nov 03 08:41:37 2011] [error] [client ] PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in individual_records_misc.php on line 166, referer:
I found this line that was created and it looks incorrectly formed.
$dwzGrid_1->SetMainPar("600|_@_|200|_@_|void|_@_|false|_@_|true|_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|true|_@_|true|_@_|true|_@_|false|_@_|true|_@_|false|_@_|true|_@_|15|_@_|10,15,20,25,40|_@_||_@_|Form|_@_|en|_@_|utf-8;65001;Unicode (UTF-8)|_@_|like|_@_|date|_@_||_@_|false|_@_|Required|_@_|Max length must be {1}|_@_|Text format|_@_|Date format|_@_|Min value must be {1}|_@_|Max value must be {1}|_@_|Not the first item|_@_|false|_@_||_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|,|_@_|No|_@_|false|_@_|root|_@_|row|_@_|Nodes|_@_|false|_@_|None;12;#000000;false;false;false;#FFFFFF|_@_|None;12;#000000;false;false;false;#FFFFFF;0;#000000;0,3|_@_|A4;L;25;25;25;25;false;Center;1|_@_|No|_@_|georef_id|_|String|_|#_start_# #_ec_ho_# $_SESSION['georef_id'] ."#_dot_comma_# #_end_#|_|Always|_@_||_@_||_@_|#000000|_@_|0.6|_@_|10|_@_|350|_@_|_s|_@_|false|_@_|None|_@_|<b>{0} - {1} Item(s)</b>|_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|ASC|_@_|false|_@_|false|_@_||_@_||_@_||_@_|");
Where it has $_SESSION['georef_id'] ."#_dot_comma_#
There seems to be a double quote where it shouldn't be. I tried fixing it manually with #_ec_ho_# trim(" .$_SESSION['georef_id'] .")#_dot_comma_#
but although the error went away, there was no value going into the database, and yes the session has been set because if it wasn't there would be no results in the grid. |
|
|