I have an array that gets populated with values from a db if certain conditions are met. This array can receive from 1-11 values from the db depending on whether a value exists in the db or not. These values that are being passed are basically attributes of products that are being sold.
All I'm trying to figure out is if the array has any values at all in it, and for some reason this task is completely stumping me.
The values passed to the array can be strings, int's etc., basically anything. They are descriptors of the product being presented.
I've read about and tried isset(), empty(), is_array() etc. but nothing seems to work. I hope I post this right, but here is an example of the code for creating the array:
Code: Select all
<? if ($_GET['crn'] >=116 && $crn<=129 or 66 or 72 or 219)
{
$details = array($Skill_Level, $Span, $Area, $Weight_NP, $Loading, $Airfoil, $Motor, $Battery, $Main_Rotor, $Tail_Rotor, $Length, $salsays, $cdsays);
}
?>j