This topic is locked

Can't find where error is

12/1/2006 8:23:24 PM
PHPRunner General questions
L
lawfour author

I am unable to find this error using phprunner visual editor or Macromedia Dreamweaver. The error happens when I click on the add link.
Parse error: parse error, unexpected '[' in lawfour.com/kcc1/_LN_Freezer_1_add.php on line 290
Dreamweaver says line 290 is $defvalues["Date IN"]=now[];
Parse error: parse error, unexpected '[' in lawfour.com/kcc1/_LN_Freezer_2_add.php on line 290
Dreamweaver says line 290 is $defvalues["Date IN"]=now[];
PHPrunner does not show the complete code as dreamweaver, just shows the html code.
Larry W

D
Dale 12/1/2006

Just a stab at it here. Looks like you have used square brackets for the = now[]
Dreamweaver says line 290 is $defvalues["Date IN"]=now[];
Try using
$defvalues["Date IN"]=now();
Perhaps you have used now[] instead of now() in the default value in the edit as formatting view.

L
lawfour author 12/2/2006

You was right, thanks I wonder why only the two tables had the problem because I used now[] on all the default date. Got to go and change them to ()
Thanks

L

Just a stab at it here. Looks like you have used square brackets for the = now[]

Dreamweaver says line 290 is $defvalues["Date IN"]=now[];
Try using
$defvalues["Date IN"]=now();
Perhaps you have used now[] instead of now() in the default value in the edit as formatting view.