Hi Everah,
Well, I thought I had it figured out, but now I'm getting an error message that I'm not sure how to handle. If you remember from my post about trying to see an array is populated and display a message if it is. Well, that part works well, but when I look at a product that is not within my specified range I get the following error msg:
Warning: Variable passed to each() is not an array or object in /var/www/html/jim/squirrelcart/themes/nsptheme/product_detail.tpl.php on line 37
Line 37 points to my while loop, code snippet is:
Code: Select all
<? $crnarray = array (116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 66, 72, 219, 107, 203, 212, 88, 215, 216, 201, 91, 111, 69);
if (in_array($_GET['crn'], $crnarray))
{
$details = array($Skill_Level, $Span, $Area, $Weight_NP, $Loading, $Airfoil, $Motor, $Battery, $Main_Rotor, $Tail_Rotor, $Length, $salsays, $cdsays);
}
$check_array = 0;
while (list($key, $value) = each($details))
{
if (!empty($value))
{
$check_array++;
}
}
if ($check_array > 0)
{
echo "<b><u>Uhmm...Just the facts please Ma'am</u></b>";
}
?>
here is a sample of a non-working page:
http://www.nesail.com/jim/index.php?crn ... how_detail
and here is a sample where the while loop works:
http://www.nesail.com/jim/index.php?crn ... how_detail
It's almost like I'm back to my original problem. If $details isn't getting populated I don't want it doing anything. Grrr... any pointers or advice would be greatly appreciated. Tahnk you,
j