PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
is there any configuration issue ?
i mean, need to ON sessions somewhere ???
You need to add the session_start() before <html> or anything else. Also, you need to turn on error reporting. It will help you see these errors.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
It was my mistake.
Session variable was actually not getting value due to stupid If condition.
I fixed and its working now.
AbraCadaver wrote:You need to add the session_start() before <html> or anything else. Also, you need to turn on error reporting. It will help you see these errors.
i learnt somewhere that session_start() is required for calling session variable but not for initializing or setup. I tried and found theory correct.
grateful, if anyone can endorse this concept or guide a bit.