Hi All
I am trying to get the following piece of code to work
The Following line from above shows the expected information
However the following line shows nothing
The Apache error log shows the following
PHP Warning: Illegal offset type in C:\\web\\web\\web.php on line 44
PHP Warning: Illegal offset type in C:\\web\\web\\web.php on line 45
Lines 45 and 45 are
Thanking in advance for any help received
I am trying to get the following piece of code to work
Code:
while (!$rs->EOF) //carry on looping through while there are records
{
$count=$fld[1];
$name=$fld[0];
echo $name.$count;
$thecount[$name]=$count;
echo $thecount[$name];
$rs->MoveNext(); //move on to the next record
}
The Following line from above shows the expected information
Code:
echo $name.$count;
However the following line shows nothing
Code:
echo $thecount[$name];
The Apache error log shows the following
PHP Warning: Illegal offset type in C:\\web\\web\\web.php on line 44
PHP Warning: Illegal offset type in C:\\web\\web\\web.php on line 45
Lines 45 and 45 are
Code:
$thecount[$name]=$count;
echo $thecount[$name];
Thanking in advance for any help received