Hej.
I må undskylde at jeg laver en 3' tråd omkring dette emne, men, jeg har et insert problem, som ser således ud:
I klassen Specieslist:
-  public function create_me($user, $pass, $email, $about, $www, $location, $fuldenavn, $adresse, $postnr, $by, $imagecode){
-       $result = $this->db->query('SELECT * FROM users WHERE ip="'. $_SERVER['REMOTE_ADDR'] .'"');
-       $count=0;
-  
-       while($row = $result->fetch_assoc()){
-        if($row['ip']==$_SERVER['REMOTE_ADDR']){
-      $count++;
-        }
-       }
-  
-       if($count<=10){
-        $result = $this->db->query('INSERT INTO users (nick, password, email, about, datetime, day, www, ip, location, fuldenavn, adresse, postnr, by, status, imagecode)VALUES ("'. $user .'", "'. $pass .'", "'. $email .'", "'. str_replace("\n", "<br />", $about) .'", "'. date("Y-m-d H:i:s") .'", "'. date("l") .'", "'. $www .'", "'. $_SERVER['REMOTE_ADDR'] .'", "'. $location .'", "'. $fuldenavn .'", "'. $adresse .'", "'. $postnr .'", "'. $by .'", "user", "'. $imagecode .'")');
-       }
-      }
og i hoved dokumentet:
-  if(strip_tags($_POST['username']) && strip_tags($_POST['part1']) && strip_tags($_POST['part2'])){
-  
-  
-  
-      $username = strip_tags($_POST['username']);
-  
-      $emailen = $_POST['part1'] .'@'. $_POST['part2'];
-  
-      $about = strip_tags($_POST['about']);
-  
-      $www = strip_tags($_POST['www']);
-  
-      $location = strip_tags($_POST['location']);
-  
-      $fuldenavn = strip_tags($_POST['fuldenavn']);
-  
-      $adresse = strip_tags($_POST['adresse']);
-  
-      $postnr = strip_tags($_POST['postnr']);
-  
-      $by = strip_tags($_POST['by']);
-  
-  
-  
-      $htmlen = new htmlen();
-  
-      $funks = new funks();
-  
-  
-      $db = new Database('localhost', 'bruger', 'password', 'database');
-  
-      $db->connect();
-      $list = new Specieslist($db);
-  
-  
-  
-      $passet = $funks->random_gen(10);
-  
-      $safe_filename = $funks->random_gen(16);
-  
-  
-  
-      $mail = $funks->mail_me($emailen, "Specieslist.eu user and password", $username, $passet);
-  
-      $create = $list->create_me($username, $passet, $emailen, $about, $www, $location, $fuldenavn, $adresse, $postnr, $by, $safe_filename);
-  
-      if($mail=="true" && $create=="true"){
-  
-       $outputen = 'You got mail - And user is created.<br />';
-  
-       print $htmlen->content_div("", "User Created", $funks->datoen(date("Y-m-d H:i:s")), date("l"), $outputen);
-  
-  
-  
-       if(isset($_FILES['imagecode'])){
-  
-        $target = "./profilepic/".basename($safe_filename .'.jpg');
-  
-        if(move_uploaded_file($_FILES['imagecode']['tmp_name'],$target)){
-  
-        }
-  
-       }
-  
-      }
-  
-  
-  
-    }
Alt andet virker, minus insert, det er det eneste jeg umidelbart ikke kan få til at reagere ordenligt.
Hjælp søges.