How can I display hour and minute only Php from mysql database like(00:00)? Here is my code:
$query = "SELECT * FROM table";
$resualt = mysqli_query($conn, $query);
if (mysqli_num_rows($resualt) > 0)
{
echo "<table class='tb'>";
while($row = mysqli_fetch_assoc($resualt)){
echo "<tr><td>" . $row['id']. "</td><td> " .$row['name']. " </td><td> " . $row['place']. " </td><td> " . $row['ddate']. " </td><td> " . $row['dtime']. " </td><td> ".$row['message']."</td></tr>";
}
echo `enter code here`"<table>";
}
else
{
echo "there is no record.";
}
thanks
You query the time through MySQL with
For example
Then you can access it through
$row['time'];