query("SELECT * FROM table");
if($result) {
while ( $row = $result->fetch_assoc() ){
$row['username'] //username = column name
}
}
$conn->close();
?>
dir_rootPHP.''
PHP List All Session Variables";
foreach ($_SESSION as $key=>$val)
echo $key." = ".$val."
";
$msg = isset($_SESSION['user']) ? 'SESSION_user "set": yes' : 'SESSION_user "set": no';
$msgEm = empty($_SESSION['user']) ? 'SESSION_user "empty": yes' : 'SESSION_user "empty": no';
echo $msg;
echo '
';
echo $msgEm;
?>