I am trying to help someone with their php website that renders a blank page. When I troubleshoot, I comment out code below and then the page works.
// include "checkifuserlogin.php";
// $condition = "";
// $objDreamVacationGallery = new HomePageBanner();
// $data = $objDreamVacationGallery->selectAllRecords($condition, $sort_field, $sort_order, $start, $limit);
I assume this is a database error but I cannot find where the config file is to see where the database is stored, if its locally or remote.
The server is linux box in AWS.
Checkifuserlogin.php has
<?php
if( (isset($_SESSION['userid']) && $_SESSION['userid'] != '') && (isset($_SESSION['firsttimelogin']) && $_SESSION['firsttimelogin']=='0') ){
if($_REQUEST["from"]=="contactus") {
echo "<script language='JavaScript'>window.location = 'my-account.php'; </script>";
} else {
echo "<script language='JavaScript'>window.location = 'page.php?page_id=home'; </script>";
}
exit;
}
selectAllRecords:
public function selectAllRecords($condition='', $sort_field='', $sort_order='', $limit_start='', $limit_end=''){
return parent::select($this->db_table, $condition, $sort_field, $sort_order, $limit_start, $limit_end);
}
?>