Friday, 15 January 2010

php - CodeIgniter: queries not being executed -



php - CodeIgniter: queries not being executed -

i'm having unusual issue codeigniter + postgresql. table:

slearning=> select * lezione; id | titolo | descrizione | info | corsoid ----+------------------+-------------+------------+--------- 1 | prova | | 2014-10-09 | 1234 2 | lezione di oggi! | | 2014-10-09 | 1234 (2 rows)

i' have manually inserted these 2 records test queries. btw, within model lezione_m:(i removed checks , other controls anyway, version not working:)

public function get_lezione() { echo $this->db->_error_message(); $query = $this->db->get('lezione'); homecoming $query->result(); }

this controller:

class test_c extends ci_controller { function __construct() { parent::__construct(); $this->load->model('lezione_m'); } public function index() { $this->load->view('test', $data); $this->output->enable_profiler(true); echo '<pre>'; print_r($this->lezione_m->get_lezione(null, 1234)); echo '</pre>'; }

the print_r:

array ( )

what profiler says query:

0.0001 select * "lezione"

not sure going on here. i'm pretty sure codeigniter it's connected database ( kind of error in case).

done. it's unusual thing, site working port number within database config file wrong.

php sql codeigniter postgresql

No comments:

Post a Comment