Here's my array of files:
$FILES:
Code: Select all
Array
(
[0] => Array
(
[name] => example
[mod] => 1184979992
[created] => 1197347342
)
[1] => Array
(
[name] => index
[mod] => 1208139263
[created] => 1197347342
)
[2] => Array
(
[name] => menu
[mod] => 1208124930
[created] => 1197347342
)
)Code: Select all
global $FILES, $NAV;
$ctableHTML = '<table id="contenttable"><tr><td>Name</td><td>Date Created</td><td>Last Modified</td><td></td></tr>';
foreach($FILES as $f) // The line it says the error occurs at
{
$ctableHTML .= "<tr><td>{$f['name']}</td><td>{$f['created']}</td><td>{$f['mod']}</td><td><a href=\"?a=edit&f={$f['name']}\">edit</a></td></tr>";
}
$ctableHTML .='</table';
$PAGE = <<<html
$NAV
$ctableHTML
html;