php - Why is it that the VALUES of my INSERT statement were turned to SPACES after the execution? -


//here function block public function create_accnt() {     $post = $this->input->post(); //gets possible posts in array form      echo "post array: ";print_r($post); // make sure array has    values      $data = array(         'userid'    => $post['user_id'],         'lastname'  => $post['lname'],         'firstname' => $post['fname'],         'username'  => $post['username'],         'password'  => $post['password'],         'usertype'  => $post['user_type'],         'status'    => 'a'     ); // assigning values specific fields inserted      $query = $this->db->insert('accounts', $data); //insertion via active record      echo "<br/>result of db last query: ";      echo $this->db->last_query();//to see how query looks in code form      if($query)     {         return true;     }     else         return false;     // end if } // end function  //here result of code above  //post array: array ( [user_id] => 123456 [lname] => smith [fname] => john [username] =>     john [password] => password [c_password] => password [user_type] => s [btn_create] => create )  //result of db last query: insert accounts (userid, lastname, firstname, username, password, usertype, status) values ('', '', '', '', '', '', '') 

here why after query values spaces? way using codeigniter , db driver pdo , database dbfoxpro.

i ended using $this->db->query() function of ci , manualy providing query statement it. think $this->db->insert() wont work on db dbf-foxpro via pdo driver. had problem $this->db->where() function. im using $this->db->query(). thank help.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -