View Single Post
Old 08-08-2008, 08:44 AM   #4 (permalink)
boycoda
The Wanderer
 
Join Date: Mar 2008
Location: United Kingdom
Posts: 22
Thanks: 1
boycoda is on a distinguished road
Default

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
Send a message via MSN to boycoda Send a message via Skype™ to boycoda
boycoda is offline  
Reply With Quote