Question Everything!
New member
Method One(Class):
class User {
var $username; // User will be verified and username stored in this by another script.
// Some other code here //
}
echo "Hello, ".$class->username;
__________________________________
Method Two(Session):
session_start();
$_SESSION['username']; // User will be verified and username stored in this by another script.
echo "Hello, ".$_SESSION['username'];
class User {
var $username; // User will be verified and username stored in this by another script.
// Some other code here //
}
echo "Hello, ".$class->username;
__________________________________
Method Two(Session):
session_start();
$_SESSION['username']; // User will be verified and username stored in this by another script.
echo "Hello, ".$_SESSION['username'];