Oh that would be the registration form...

This is probebly what you are looking for??

PHP Code:
$p_hash md5 ($p);
            
$sql "INSERT INTO users (username, email, password, firstname, lastname, ip, signup, lastlogin, notescheck)       
                VALUES('
$u','$e','$p_hash','$c','$ip',now(),now(),now())";
        
$query mysqli_query($db_conx$sql); 
        
$uid mysqli_insert_id($db_conx);
            
$sql "INSERT INTO useroptions (id, username, background) VALUES ('$uid','$u','original')";
        
$query mysqli_query($db_conx$sql);
            if (!
file_exists("user/$u")) {
            
mkdir("user/$u"0755);
        }