I am trying to retrieve a value from a function. The code works if I pull it out of the function, but I can't seem to get the function to return the value of $adminfullname.
function adminlogininfo() {
$result = mysql_query("SELECT * from security WHERE username = '$login'");
$row=mysql_fetch_array($result);
$adminfullname = $row["fullname"];
return $adminfullname;
}