Kann mir mal jemand erklären warum diese paar billigen Zeilen nicht funktionieren wollen?
	
Er gibt 2 für param_count aus, ich übergebe zwei Vars, alles perfekt, aber er meint
	Nehme ich nur einen Wert funktioniert es (z.B. Betreff raus editieren)
	
							
						
					PHP-Code:
	
	
$prep = $this->mysqli->prepare('INSERT INTO guestbook (Von, Betreff, Datum)
   VALUES (?, ?, NOW())');
echo $prep->param_count;
$prep->bind_param('ss', $this->Von, $this->Betreff); 
Code:
	
	2 Warning: mysqli_stmt::bind_param() : Number of variables doesn't match number of parameters in prepared statement in ...
PHP-Code:
	
	
$prep = $this->mysqli->prepare('INSERT INTO guestbook (Von, Datum) VALUES (?, NOW())');
$prep->bind_param('s', $this->Von); 
 
          

 
 
							
						
Kommentar