I am using include_once('sessions.php')
on 2 php files but both these files are returning the output of the sessions.php page and i am getting the result of sessions.php twice.
The 2 files are message.php and get.php.
so, i get all the results from get.php in message.php page.
In message.php file i am loading get.php results as:
$("#message").load("get.php");
But I need to include("sessions.php")
in both my files.
I thought only to include("sessions.php")
on my get.php page and not on message.php, but this is also not validating properly in message.php page.
If any one can help me out, I would be thankful.