Found something strange about session.. hope someone could give me an answer about it.
session_start();
abc();
function abc()
{
select from database;
$a = $row[a];
$b = $row;
session_register("a", "b");
}
This doesn't work.. Why?
session_start();
select from database
$a = $row[a];
$b = $row;
abc($a, $b);
function abc($a, $b)
{
session_register("a", "b");
}
But this work..
Can someone explain huh?