Hey i working for my campus project so i want to ask what this notice means
Notice: Use of undefined constant angle_x - assumed 'angle_x' in C:\xampp\htdocs\lews\data.php on line 193
this is my php code
if(strlen($row->angle_x > 170 && angle_x < 185) ){
echo"SIAGA LONGSOR";
}
i've tried this method
if(strlen($row['angle_x'] > 170 && ['angle_x'] < 185) ){
echo"SIAGA LONGSOR";
}
but it comes error like:
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in C:\xampp\htdocs\lews\data.php:190 Stack trace: #0
also tried this
if(strlen($row->'angle_x' > 170 && 'angle_x' < 185) ){
echo"SIAGA LONGSOR";
}
result:
Parse error: syntax error, unexpected ''angle_x'' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\xampp\htdocs\lews\data.php on line 190 i tried any solution to fix this, but not truly help me out