Hi all, i am storing the value in session but while retrieving its showing the some other value.....totally i want this stored value in the next page .........can u help me...........
This is the code i am storing the value in session
<?
session_start();
include('database.php');
$mailid1 = $_GET['mail_id'];
session_register('mailid1');
echo $_GET['mail_id'];
$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."'";
$result = mysql_query( $query1 );
//echo mysql_num_rows($result) ;
while($row = mysql_fetch_array($result))
{
echo $row['contents'];
}
mysql_close();
?>
This is the code where i am retrieving value from the session
<?
session_start();
include("header.php");
include('database.php');
$mailid1 = $_SESSION['mailid1'];
echo $mailid1;
$query1="UPDATE autoalto_mail SET flag='1' where mail_id='".$mailid1."'";
$result = mysql_query( $query1 );
//echo mysql_num_rows($result) ;
mysql_close();
?>