Welcome Guest, Not a member yet? Register   Sign In
Call to a member function row() on boolean
#7

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
--------------------------------------------------------------------------------------------------------------
Reply


Messages In This Thread
RE: Call to a member function row() on boolean - by gelson - 11-24-2020, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB