07-14-2017, 01:33 PM
Hi everybody,
How can I get Date of MySQL with DB Class?
I try something like this:
<?php
require_once '../../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
$today = $db->query("SELECT NOW()");
echo $today;
?>
But doesn't work:
Recoverable fatal error: Object of class DB could not be converted to string in C:\xamppadm\htdocs\appreq\app\tests\data.php on line 8
Thanks for all help
How can I get Date of MySQL with DB Class?
I try something like this:
<?php
require_once '../../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
$today = $db->query("SELECT NOW()");
echo $today;
?>
But doesn't work:
Recoverable fatal error: Object of class DB could not be converted to string in C:\xamppadm\htdocs\appreq\app\tests\data.php on line 8
Thanks for all help