angel1987 Posted June 27, 2010 Share Posted June 27, 2010 Hello All, I am trying to display session value and it works on localhost but on web server it displays the name of the table in the database. Here is an example code: <?php @session_start(); if (!isset($_SESSION['designation'])){ $submiter = $_SESSION['designation']; } if (isset($_SESSION['username'])){ $submiter = $_SESSION['username']; } echo $submiter; ?> I have used it many times before and it worked all the time until now, is this something from web server side? because this web server is the other one, not the one i worked on before. Link to comment https://forums.phpfreaks.com/topic/205981-weird-php-mysql-problem-session-displays-name-of-the-table/ Share on other sites More sharing options...
angel1987 Posted June 27, 2010 Author Share Posted June 27, 2010 Ok i figured it out, it was the single quote issue, it should be double quotes instead. Thanks for reading at least. Link to comment https://forums.phpfreaks.com/topic/205981-weird-php-mysql-problem-session-displays-name-of-the-table/#findComment-1077819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.