Jump to content

going to flip out


jkewlo

Recommended Posts

i dont understand sessions

 

and how it is supposed to store the username etc...

 

session_start();

session['username'];

session['leve'];

 

on the profile page i have

 

session_start();

 

all in <? ?> tags

 

then i have a if statement

 

if($_SESSION['level'] = 3){

echo "<a href=admin.php>Admin</a>";

}

 

but it displays that no matter what user i sign in with

 

i cleared my cookies closed firefox refreshed the browser

 

im going nuts.

 

sad thing this isnt even my project

and if it was i woudltn be using MS Access etiher

Link to comment
https://forums.phpfreaks.com/topic/97702-going-to-flip-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.