Hi,
I've just upgraded to php 4.2.3 and I'm now getting a lot of errors in my code that wasn't there before. I've had to go through and predefine all of my variables as I have been getting undefined variable messages and now it seems to be having a problem with the way I built the following two dimensional array.
$fieldsarray = array (
array (name => "button", value => "no"),
array (name => "chassis", value => "$chassis"),
array (name => "productlevel", value => "$productlevel"),
array (name => "status", value => "$status"),
array (name => "originator", value => "$originator"),
array (name => "assignedto", value => "$assignedto"),
array (name => "area", value => "$area"),
array (name => "drrank", value => "$drrank"),
array (name => "datefrom", value => "$datefrom"),
array (name => "dateto", value => "$dateto")
);
Notice: Use of undefined constant name - assumed 'name'
Can anyone tell me whats going on? I was previously using php4.1.0 without these problems. I've looked through the change logs but I can't find anything that explains this. I don't want to go through and change all my code as there's hundreds of scripts.
Thanks in advance,
Jo