Page 1 of 1

How to change the following line of code to php 4.4.6

Posted: Wed Nov 14, 2007 5:31 pm
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>";

Posted: Wed Nov 14, 2007 7:02 pm
by Jonah Bron
Is this in php 3 or php 5? If 5, then can't the server update?

Posted: Wed Nov 14, 2007 7:02 pm
by Christopher
How is it not working? Is there an error message?