View Single Post
Old 11-26-2008, 04:57 AM   #4 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 311
Thanks: 8
tony is on a distinguished road
Default

you need to declare $parts as an array first before assigning an array value to it. like this:
PHP Code:
$file array_reversefile'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.
tony is offline  
Reply With Quote