Chapter 4 of php and MySQLWeb development uses session control in php, and gets stuck in a difficult problem ~
';?>
Running result:
The content of $ _ SESSION ['sess _ var'] is
Why is the $ _ SESSION _ ['sess _ var'] not printed? is the session expired?
Reply to discussion (solution)
You are
Assign $ _ SESSION _ ['sess _ var'] = "Hello World ";
Echo $ _ SESSION ['sess _ var'];
Of
Do you think $ _ SESSION _ and $ _ SESSION are one thing?
Php should check all errors (make error_reporting = E_ALL in php. ini), so that php will tell you where there is a problem.
Session_start ();
$ _ SESSION _ ['sess _ var'] = "Hello World ";
Var_dump ($ _ SESSION );
You are
Assign $ _ SESSION _ ['sess _ var'] = "Hello World ";
Echo $ _ SESSION ['sess _ var'];
Of
Do you think $ _ SESSION _ and $ _ SESSION are one thing?
Php should check all errors (make error_reporting = E_ALL in php. ini), so that php will tell you where there is a problem.
Thank you.
Session_start ();
$ _ SESSION _ ['sess _ var'] = "Hello World ";
Var_dump ($ _ SESSION );
Thank you.
You are
Assign $ _ SESSION _ ['sess _ var'] = "Hello World ";
Echo $ _ SESSION ['sess _ var'];
Of
Do you think $ _ SESSION _ and $ _ SESSION are one thing?
Php should check all errors (make error_reporting = E_ALL in php. ini), so that php will tell you where there is a problem.
Sorry, I didn't notice that the score cannot be filled in by hand. the score distribution is invalid.