This is the code snipit that is giving me a problem. I used a couple online mysql checkers on this and both indicated a problem in the red text line. The script was written for php3x and my server has 5.1.13. The error has to do with the use of "while", so I'm trying to apply the correct syntax, but really don't know what that would be. I've looked online and have seen similar issues with example fixes, but I'm not sure how to apply them or if they'd even work...
$ViewPerm = array();
while ( list( $catugid, $ugnoview ) = mysql_fetch_row($resultb) )
{
$noview=0;
$ViewPerm[$catugid] = 1;
$allnoview = explode( ",", $ugnoview );
foreach ($allnoview as $key)
{
if (in_array($key, $grouparr) )
{
$noview = 1;
}
}
if ( $noview == 0 )
{
$ViewPerm[$catugid]=0;
}
}
}
Any thoughts on this would be appreciated. For added info, this snipit comes from the inc_ads.php file in Photopost Classifieds v4.1. Thanks
|