How to store array values in a foreach loop |
Hello everyone, am new to codeignitor, am getting trouble in storing values in array. below is my code
PHP Code: $query = $this->db->query('SELECT name FROM grade'); last value in the column. I want to pass this array with all it's values to another block of code. any suggestion is welcomed. PHP Code: $query = $this->db->query('SELECT name FROM grade'); Alternative method: PHP Code: $query = $this->db->query('SELECT name FROM grade')->result_array();
|
Welcome Guest, Not a member yet? Register Sign In |