I am trying to run the following from a PHP page:
$exthr = mysql_query("select extract(hour from '19:00')"
echo $extr;
It does not seem to work. I end up with
Resource id #4
Yet if I type:
select extract(hour from '19:00');
at the mysql command line, it does. Any idea why PHP is not running this?
$exthr = mysql_query("select extract(hour from '19:00')"
echo $extr;
It does not seem to work. I end up with
Resource id #4
Yet if I type:
select extract(hour from '19:00');
at the mysql command line, it does. Any idea why PHP is not running this?