PROBLEM SOLVED!
What I actually was including was a variable ($main) and since some my
pages are called on from different pages in different folders what I
actually did was seting $main to the full URL to the site
(http://mysite.com/page.php) to avoid confusion. But when calling on a
URL I gu
from last page the
user was on, so in my script it is not defined but I put the code here
to let you see it...)
*/
$main="page.php"
?>
[ Some working code here ]
}
IN PAGE.PHP
[More code here]
Can you see anythin
I also tried require...)
If I access page.php directly (by writing the URL in my browser) things
like
if ("1"==$_SESSION[user_level]) { let this stuff happen }
will work just fine, but when page.php is included in mainpage the
$_SESSION[user_level] is empty for that included pa
Hi
PROBLEM:
I want to let certain users use certain funcions on my page. To manage
that I start a session and define $_SESSION[user_level] to a value from
a mySQL table. So far so good. Users with $_SESSION[user_level]=="1" can
access things on the .php page they are on. I made a simple if-st
4 matches
Mail list logo