Hello
What I am trying to do is automaticly create a webpage using fopen to open the web page for writing and fwrite to write the webpage. The problem I am having is when I trying writing something like this to the webpage
echo "<p class='Bodys'>".nl2br($row['Announcement'])."</p>";
In the function I take out the double quotes becuase this causes problems, but in this case i think i need the qoutes in so it will evaluate the expression.
I tried doing it this way but it doesn't work:
fwrite (index.php, "echo '<p class='Bodys'>'.nl2br($row['Announcement']).'</p>';");
Is there anyway i can get fwrite to write the double qoutes i need.
Thanks