08-08-2008, 08:44 AM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Mar 2008
Location: United Kingdom
Posts: 22
Thanks: 1
|
hmm, I still have the same problem.
This is my getUsersName function..
PHP Code:
function getUsersName() {
$email = $_SESSION['myemail'];
$query = mysql_query("SELECT * FROM `tbl_users` WHERE `email` = '$email' LIMIT 1") or trigger_error(mysql_error());
$row = mysql_fetch_array($query);
echo $row['name'];
return;
}
And in my other function I have put this line,
PHP Code:
<h3>Welcome back, <span>'.$this->getUsersName().'</span></h3>';
It still appears above the welcome back, text
|
|
|