Hello,
I wrote a very rudimental News Updater, and it functions perfectly, but the two problems are:
- when I post a news, the second I post and all others are written under the first
- then, when I write this character "'" it comes written like: "\'"
This is the code I use:
<?php
$filename = "news.inc";
$open = fopen ($filename, "a") or die ("Can't open news file");
fwrite ($open, "<?php printnews (\"".$title."\", \"".$email."\",\"". $name."\",\"". $news."\",\"". $url."\",\"".$link."\"); ?><br>");
fclose ($open);
?>
How can I fix them?
Greetings,
Alberto