Post: selecting data from mysql table.
12-21-2011, 11:23 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Im trying to do this, and I can't find anything on it.

like lets say...

    
$age = mysql_query(" SELECT age FROM staff WHERE username = '". $_SESSION['username'] ."' ");


how can I get the "age"

so like
    
if ($age < 21)
{
echo "You are a child.";
}else{
echo "You are an adult.";
}
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo