| Fatal error: Call to a member function on a non-object Hello,
I am new to PHP, and am encountering this error at the last line:
include_once('db_inter.php');
include_once('header.php');
$handle = db_connect();
$pages_sql = 'select * from pages order by code';
$pages_result = $handle -> query($pages_sql);
The function db_connect() is located in db_inter.php. The PHP version is 4.3.8. I think the code written for PHP5, and may not be compatible. Could someone confirm? |