How to change the following line of code to php 4.4.6

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
mkkay
Forum Newbie
Posts: 16
Joined: Mon Oct 22, 2007 5:42 pm

How to change the following line of code to php 4.4.6

Post by mkkay »

Hi guys i have changed servers and my new server supports php 4.4.6. this bit of my code is not working properly and was told it was coz of the different versions anyone know what i need to change to make it work?

Code: Select all

$MyImages = explode("|", $a1[image]);

		$ShowInfo .= "<table valign=top align=center width=\"100%\" height=50>\n<tr>\n\t<td align=center valign=top width=\"100%\" height=50>";
		
		while(list(,$v) = each($MyImages))
		{
			$ShowInfo .= "<a href=\"info.php?id=$_GET[id]&i=$_GET[i]&f=$v\"><img src=\"cars_images/$v\" width=50 height=50 border=0></a>&nbsp;&nbsp;&nbsp;\n\n\t";
		}

		$ShowInfo .= "</table><hr size=1 width=\"95%\" color=#336699><br>";
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

Is this in php 3 or php 5? If 5, then can't the server update?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

How is it not working? Is there an error message?
(#10850)
Post Reply