$bpm = isset($_GET['bpm']) ? $_GET['bpm']
: throw new \InvalidArgumentException('value not set bpm.');
but get sent back Parse error : syntax error, unexpected ‘throw’ (T_THROW) in /home/vol1_2/epizy.com/epiz_33087480/htdocs/add_track.php on line 36 instead of my error returned . Can anyone help ?
I don’t know about how this works with PHP 8.0 (I don’t like throwing stuff from a ternary operator, but that’s just my opinion), but our hosting is still running on PHP 7.4, which means PHP 8 specific language features are not available yet.
Ok thank you Admin i thought it might be on 8.0 why I was getting lots of shake down problems. I don’t think PHPAdmin is latest version either just fyi.