Array Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zamikazi
Forum Newbie
Posts: 1
Joined: Sun Apr 18, 2004 8:03 pm

Array Help

Post by zamikazi »

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


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&#1111;$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;
that is all the code...any ideas on how to fix?
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

remove the echo from this line

Code: Select all

echo      $openfile = file("linkdump/plug.db.php");
Post Reply