Hi, I am trying to check if a certain username is in a session. This is what I have so far...
<?php
if ($_SESSION=='Djmann1013') {
// Do the work here.
} else {
// Don't do anything :P
}
?>
But, when I test this, it does nothing. But when I do this:
<?php
if ($_SESSION='Djmann1013') {
// Do the work here.
} else {
// Don't do anything :P
}
?>
It does what I want, but it overrides the $_SESSION variable. But all I want is to make it so that when a person logs on with the name "Djmann1013" it will do what I want it to, and what I want it to do when it's not the person, with out overriding the $_SESSION variable.
Big thanks if you help.