I read from mysql website, I execute this:
SELECT CURTIME()
But then how to get the value? Using mysql_fetch_assoc()??
I read from mysql website, I execute this:
SELECT CURTIME()
But then how to get the value? Using mysql_fetch_assoc()??
SELECT CURTIME() as time_now
*EDIT
$conn = mysql_connect("localhost", "mysql_user", "mysql_password");
$sql = "SELECT CURTIME() as time_now";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)) {
echo $row["time_now"];
}