PHP is P O'd at me
| From: | Sparky Kopetzky | Date: | Tue, 22 Apr 2003 23:40:18 +0000 |
| Subject: | PHP is P O'd at me | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-144920@lists.php.net to get a copy of this message | ||
Ok, guru's!! I gotta bad one here and I don't know why. I'm passing in a
section of a two-dimension array, dim 1 is an array of elements but I don't
know how to pass the current element and PHP just hates the code in this
getting this error:
Fatal error: Cannot use [] for reading in /httpd/development/web.php on line
501
function PrintStaticText($formElement)
{
HtpTableRowOpen();
HtpTableData(READ_ONLY_FIELD . $formElement[]['FieldLabel'] .
FONT_END);
HtpTableData(HtfImg(FIELD_HELP_IMAGE, null, 'Static Field', 0));
HtpTableData(READ_ONLY_FIELD . $formElement[]['FieldValue'] .
FONT_END);
HtpTableRowClose();
}
What can I do to fix this??
Robin Kopetzky
Black Mesa Internet Services