I want to know how to make a second "check" on what session is set. I am currently using this code:
<?php
session_start();
require_once("../user/connect.php");
include "getn.php";
if($_SESSION['username'] != 'RBLXDev') {
die('lol failure');
}
?>
My current username is RBLXDev, but I want to make it check if the current username (stored in a session named username) is something like "waffle_".
I believe how you do the and statement in PHP is ||, but I don’t know how to add to that code.
You can use any Logical Operator in you
ifstatement to perform 2 or more checks –using or / || –
using and / && –