the code i will be using to display/store the info in my blog is
<?php
$blog[] = array(title1,date1,entry1)
$blog[] = array(title2,date2,entry2)
$blog[] = array(title3,date3,entry3)
foreach ($blog as $entry)
{echo "<hr /><h3>". $entry[1] ."</h3><br />
<date>".entry[2]."</date><br />
<div class=\"list\">". entry[3] ."</div>"
}
?>
but i got the error
Parse error: parse error, unexpected T_VARIABLE in C:\UTILITIES\Webserv\Abyss Web Server\htdocs\blog.php on line 4
is is because i tried to put an array inside an array?



Reply With Quote




Bookmarks