Hi all,
taking the following function, id like to know how to get a single value out of the array (assuming 1 record is returned). i know my syntax is wrong for the function, im just typing fast.......
function user($id){
//connect DB
SQL = "username, password, name age" // etc
$un = $row[username] //
$array = ($un, $pw, $name, $age);
return $array;
}
$user = user($id);
How do i get just name? (or any single value)