How can I store the actual hour and minute,from a mysql table, in variables?I want to store hour and minute like this:
//Connect database
$con = mysql_connect("localhost","root","ufmg3duc");
if (!$con)
die('Could not connect: ' . mysql_error());
//Select database
mysql_select_db("stream_net", $con);
//Read data
$query_month = $_GET['form_month_tend'];
$query_day = $_GET['form_day_tend'];
$query_year = $_GET['form_year_tend'];
if ($query_mes == NULL)
$query_mes = date("m");
if ($query_dia == NULL)
$query_dia = date("d");
if ($query_ano == NULL)
$query_ano = date("Y");
How can i do like i did before but with Hour and MInutes?
mysql_*functions already. The entire extension is deprecated (and not a moment too soon). It's alternatives are far more powerful, reliable and up-to-date. These new extensions arePDOandmysqli_*(theiinmysqli_*stands for improved).