I'm in the process of making a PHP "database". It makes a two dimensional array with the first dimension being the record number and the second being the data. Anyway, the way it works is that a user inputs the data from one page and it gets sent to make.php3 . There the data is read and put into a string with the added elements required to make an array. Then that string is output to a file enclosed in PHP tags so that the file can be INCLUDEed and the array variable will be set. So the file that includes the array looks something like this:
<?
$news = array ("1" =>
array("date"=>"06/26/2000",
"author"=>"Jason Bryner",
"title"=>"Tornado Touches Down",
"news"=>"A tornado ripped through eastern Tennessee today, tearing apart 5 homesteads. Luckily, no one was injured.",
"next"=>"add")
)
?>
Now, the qestions is... How can add to the array. It needs to be set up so the user can go back and add more records. I think that really needs to happen is to somehow remove the last ) and ?> from the file and append the file with the next record (array). If anyone has suggestions, please let me know. Thanks in advance.