ok I think I now understand it
PHP:--------------------------------------------------------------------------------
$newnews = "<TABLE align=center border=0 cellPadding=1 cellSpacing=0 width=90%>
<TBODY>
<TR>
<TD align=center><FONT face=verdana, helvetica size=1><STRONG><div align=center><a href=\"#<$snewz_id>\">$subheading</a></div>
</STRONG></FONT></TD></TR>
<TR>
<TD><FONT face=verdana, helvetica size=1>$subject<p align=right> posted on: $date by $username</FONT></TD></TR>\n";--------------------------------------------------------------------------------
ok in my code I would make it so it would have to seperate the news bit by bit so i can then view each news seperatly
so in that case would I then have to use
something like this $news = "[~nl~]$subheading [~]$subject [~]$date
then I can use something like this
PHP:--------------------------------------------------------------------------------
<?
$news= "news.txt";
$newsfile = fopen($news, "r");
$newsdata = fread($news, filesize("$newsdata"));
$line = explode("[~nl~]", $newsdata);
$lastnews = sizeof($line) - "1"; - don't know what this does
for($i=$lastnews; $i > 0; $i--) {
list($subheading,$date,$subject) = explode("[~]", $line[$i]);
echo "<b>$subheading</b> - $date<br>$subject<br><br>";
}
?>
I think i know what celeron is doing here but I want to know if I am correct with adding my code into that hwo would I completely change it to suit my news code?
thanks
__________________
If you fail at your first attempt destroy all evidence that you tried.
==========::::::::===========
=====::: Sam Colebatch :::=====
==========::::::::===========