Jump to content

Weird PHP MySql Problem, Session displays name of the table.


angel1987

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.