Thread: What's wrong?
View Single Post
Old 09-20-2007, 11:41 AM   #5 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Well, the mysql_escape_string is a bit unneccessary, due to this:
PHP Code:
public function setName($name) {
            
            
$name $this->db->makesafe($name);
            
$this->data['username'] = (string) $name;
    
        } 
PHP Code:
public function makesafe($string) {
            
            
$result mysql_escape_string($string);
            
            return 
$result;
            
        } 
But I'll try with the the other things you mentioned! :D
Tanax is offline  
Reply With Quote