This topic is locked

session variable

10/12/2011 2:59:17 AM
PHPRunner General questions
J
jura author

canot add date field in session variable

global $conn;

$str = "select Date from Users where UsersID='".$_SESSION["UserID"]."'";

$rs = db_query($str,$conn);

$data = db_fetch_array($rs);

$_SESSION["Date"] = $data["Date"];
C
cgphp 10/12/2011

I'm not sure that I understand your question.

J
jura author 10/12/2011



I'm not sure that I understand your question.


i have field date in table Users, and i want to field Date write on add page of some other table

C
cgphp 10/12/2011

Try to echo $data["Date"] before to assign it to the session var.