Didnt know where to post this question mysql or here, since im working with php i decided to put it here..
Im starting to learn mysql now :)
SO i just wanna retrive a full name from a user how would i do this?
im imaging this should be done at login ? so
if ($username && $password) {
$queryGet = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password'");
$numRows = mysql_num_rows($queryGet);
if ($numRows != 0) {
//i want to put a variable session like what i did below
//with username but with a value thats inside mysql called 'full_name'
$_SESSION['username'] = $username_LI;
echo 'You have logged in correctly';
}
Very thanks :)