Upgraded to php 4.2.1, broke a script

Gontran Zepeda plug-discuss@lists.plug.phoenix.az.us
Wed, 15 May 2002 18:06:41 -0700


% Kevin Brown (kevin_brown@qwest.net) wrote:
> [ script broke on upgrade from 4.1.2 ]
> 

php finally get to the magic combination of numerals for an upgrade?  ;)

psycho.

> show_image.php:
> 
> <?
> include("movie_conf.php");
> dbConnect();
> 
> $get_image = "select binary_junk, filetype from images where img_id = '$imgid'";
> $get_image_result = mysql_query($get_image);
> 

// May i suggest incrementing by one?
> $binary_junk = mysql_result($get_image_result,0,"binary_junk");
$binary_junk = mysql_result($get_image_result,1,"binary_junk");
> $filetype = mysql_result($get_image_result,0,"filetype");
$filetype = mysql_result($get_image_result,1,"filetype");

Possibly the indexing scheme went from array to count in the newer
versions?

Gontran