I have seen a way to write a simple If, Else in one line, but cannot find an example to follow. I am looking to make the following code snippet cleaner and shorter:
if ($fetch_activities["activity"] == $activity) { $sel = "SELECTED"; } else { $sel = ""; };
Thanks!