I search alot about this error but I didn't understand what is the problem in my setuation. I know it should be a little problem in my codes but i am learning to work on back-end codes and php.so please help me
Notice: Trying to access array offset on value of type bool on line 85 , 86
function getProductInfo($productId){
$sql="select * from tbl_product where id=?";
$result=$this->doSelect($sql,[$productId], 1);
/*85*/ $colors=$result['colors'];
$sizes=$result['sizes'];
$colors=explode(',',$colors);
$sizes=explode(',',$sizes);
$result['colorsInfo']=[];
$result['sizesInfo']=[];
foreach ($colors as $color){
$sql="select * from tbl_color where id=?";
$colorInfo=$this->doSelect($sql,[$color],1);
array_push($result['colorsInfo'],$colorInfo);
}
and in otherside my function don't work right.
and don't send $idcategory
in his right value and it send null.