How can I get the result varialbe of a MySQL query to be assigned to a session variable?
session_register("variable); $variable = $mysql_row["variable"];
^ my above code does not work ^
// Mr. Greene
$foobar = mysql_fetch_row(mysql_array("select $id from table where foo = 'bar'");
setcookie('$foobar',cookiename);
setcookie('$foobar[0]',cookiename);
But your examples will not work with PHP4's sessions!?!