my code:
$db = new PDO('mysql:host='.DBx.';dbname='.DBx.';charset=utf8', DBx, DBx);
$sql = "SELECT max(date_insert) FROM OrderAUS LIMIT 1" ;
$val = $db->query($sql);
the result of the query should be one date, i need to put it in a $variable (just the date, not an array of results). Can you please show me the correct way to do it?