[eluser]waynhall[/eluser]
Although this shouldn't be necessary in a well-written program, this workaround may solve your issue for now:
Code:
<?php
class Members extends CI_Model {
public function register($username, $password, $email){
if($username && $password && $email) { // check if they exist and aren't 0 or FALSE
// you could also try:
// if(!empty($username) && !empty($password) && !empty($email)){}
$sqlq = "INSERT INTO members VALUES(?, ?, ?, ?)";
$this->db->query($sqlq, array(NULL, $username, $password, $email));
}
}
}