Array Help
Posted: Sun Apr 18, 2004 8:03 pm
Hello, I have a script that removes a list of data from a flatfile database, and whenever it is displaying this info, it leaves a text that says "array" then lists all my data.
Example:
ArrayBanned on the Run
FlashTheater.net
Mike Lopez''s Livejournal
--> StatiCFlasH <--
AQUA Clan
My WEbSite
that is all the code...any ideas on how to fix?
Example:
ArrayBanned on the Run
FlashTheater.net
Mike Lopez''s Livejournal
--> StatiCFlasH <--
AQUA Clan
My WEbSite
Code: Select all
echo $openfile = file("linkdump/plug.db.php");
$total = count($openfile);
for ($i=0; $i<6; $i++):
list($UNEMPOWERED,$url,$sitename,$ip) = explode('|',chop($openfileї$i]));
$url = str_replace("http://","",$url);
$url = str_replace("www.","",$url);
$url = str_replace("/","",$url);
echo "<a href=http://$url target=_new title=$url>$sitename</a><br>\n";
endfor;