Upgraded to php 4.2.1, broke a script

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gontran Zepeda
Date:  
Subject: Upgraded to php 4.2.1, broke a script
% Kevin Brown () 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