Haven't coded in php in a while and I'm now drawing blanks. Could someone simply correct my syntax on this?
<?php
session_start();
if $_SESSION['user_name'] == 'john', 'mike';
include ("audit_live.html");
else
include ("audit.html");
?>
Haven't coded in php in a while and I'm now drawing blanks. Could someone simply correct my syntax on this?
<?php
session_start();
if $_SESSION['user_name'] == 'john', 'mike';
include ("audit_live.html");
else
include ("audit.html");
?>
if ($_SESSION['user_name'] == 'john') or $_SESSION['user_name'] == 'mike')
or
if (in_array($_SESSION['user_name'], array ('john', 'mike')))
thank you!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.