11-26-2008, 04:57 AM
|
#4 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 311
Thanks: 8
|
you need to declare $parts as an array first before assigning an array value to it. like this:
PHP Code:
$file = array_reverse( file( 'u4g.txt' ) );
$parts=array();
foreach ( $file as $line ){
$parts = explode('||', $line);
echo "<div class='viewline'><h3>" . $parts[3] . "</h3><br />". $parts[4] ."<br />Posted by: " . $parts[1] . "<br /> Date Posted: " . $parts[0] . "<br />" . "Contact Email: " . $parts[2] . "</span></div>";
}
}
that's is a problem i stumble sometimes with arrays.
|
|
|
|