ok I am attempting to make a simple add and edit news script with flat file and mysql.
one problem though I go to this form
http://www.samcolebatch.com/index.htm
I try and post something and it say's that I have a parse error
on line 24.
I have had a look at this code
$your_date = date("M j, Y h:i:s");
$fp=fopen("./comments.dat", "a");
fputs($fp, "<tr><td>Posted by <a
href=mailto:$your_email>$your_name</a> at
$your_date</td></tr><tr><td>$your_comments</td></tr>");
fclose($fp);
$new = "<tr><td>Posted by <a
href=mailto:$your_email>$your_name</a> at
$your_date</td></tr><tr><td>$your_comments</td></tr>";
$f = fopen("comments.dat", "r");
$old = fread($f, filesize("comments.dat"));
fclose($f);
$new .= $old;
$f = fopen("comments.dat", "w");
fwrite($f, $new);
fclose($f);
";
and I can't see any problems there.
Also are there any tutorials online which will help me limit the
amount of news posts, pluss be able to edit the news using the current code that I have? Unless someone can help me by giving
me snippets of code? I am also at the same time writing a small
login script - thanks
thanks alot for your help in advanced.