@godslove
Fatal error: Call to undefined function session_register() in C:\xampp\htdocs\4\admin\checklogin.php on line 33
You can't used session_register() because it's outdated
Read this:
http://php.net/manual/en/function.session-register.php
If you are using PHP 5.4.0 then this function is no longer available.
Please update to PHP 5.4.7
If you want still want to used that
Then do this : $_SESSION['username'] = '$username';
My advice right now learn the current code because you will get alot of errors later on and it's getting harder for you to make the code work.
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 349
Skill Endorsements: 47
Before assigning any session variables like $_SESSION['username'] = ...
ensure that you have session_start(); at the top of every page.
diafol
Keep Smiling
10,826 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,532
Skill Endorsements: 61
Sure, no problem. As it wasn't in your original code, I thought I'd add it 'just in case'.
Everthing is cool now.
:)
diafol
Keep Smiling
10,826 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,532
Skill Endorsements: 61