Well, my question is simple:
I wish to use my PHP sessions in jQuery, in an if statement, however I do not know how I can do this on an easy way. Am I supposed to someho
Sadly that you can mix server-side script (PHP) with client-side script (Javascript). However, you can use PHP to echo Javascript, like:
echo
if ($admin == true || gebr_id == $_SESSION['id']){ echo '<script> alert("Admin!"); $("selector").function(); // </script>'; }