Call to a member function row() on boolean |
well, still not fetching anything from the database sir... and the echo prints aren't showing any values
$this->db->order_by('user_name', 'DESC'); $query=$this->db->get_where('admin', $where); $data = array(); if($query !== FALSE && $query->num_rows() > 0){ foreach ($query->row_array() as $row) { $data[] = $row; print_r("testing"); print_r($data[num_rows()]); echo ("testing"); $data[] = $row->row_array(); } } return $data; ---------------------------------------------------------------------------------------------- THIS IS A SMALL ALGORITHM TESTING IF THERE IS CONNECTIVITY TO THE DATABASE THUS PROVING THERE IS NO ISSUE WITH DATABASE CONNECTIVITY: //CHECKING DATABASE CONNECTIVITY $servername = "localhost"; $database = "tauenjic_igni811"; $username = "tauenjic_igni811"; $password = "uh.pS509(7"; // Create connection $conn = new mysqli($servername, $username, $password, $database); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Database has Connected successfully so means connectivity is not the problem"; //CHECKING DATABASE CONNECTIVITY -------------------------------------------------------------------------------------------------------------- |
Messages In This Thread |
Call to a member function row() on boolean - by tenshinadela - 10-05-2018, 02:22 AM
RE: Call to a member function row() on boolean - by dave friend - 10-05-2018, 11:26 AM
RE: Call to a member function row() on boolean - by gelson - 11-23-2020, 04:50 AM
RE: Call to a member function row() on boolean - by InsiteFX - 11-23-2020, 01:02 PM
RE: Call to a member function row() on boolean - by gelson - 11-23-2020, 10:16 PM
RE: Call to a member function row() on boolean - by InsiteFX - 11-24-2020, 02:33 AM
RE: Call to a member function row() on boolean - by gelson - 11-24-2020, 09:10 AM
RE: Call to a member function row() on boolean - by InsiteFX - 11-24-2020, 12:36 PM
|