paano ko kaya ito igilid sa rightside nya mismo isasagad sa right nya ito dalawa na to ayaw ng style="text-align:right;"
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Delete</a>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Update</a>
ito code ko
<div class="container col-md-9 mt-2 ">
<?php
$sql = mysqli_query($con, "SELECT *, UNIX_TIMESTAMP() - date_created AS TimeSpent FROM adminpost inner join registration on registration.user_id = adminpost.user_id ORDER BY date_created DESC") or dir (mysqli_error($scon));
while($post_row = mysqli_fetch_array($sql)){
$id_user = $post_row['username'];
$id_comment = $post_row ['comment_id'];
?>
<div class="comet">
<div><h6>    <i class="fa fa-user-circle-o"></i>  <?php echo $id_user; ?>     <i class="icon1 fa fa-hand-o-right" ></i> <a href=""><?php echo $post_row['title'];?></a>
<br>
<!-- date & time -->
<div class="date-time">   
<?php
$days = floor($post_row['TimeSpent'] / (60 * 60 * 24));
$remainder = $post_row['TimeSpent'] % (60 * 60 * 24);
$hours = floor($remainder / (60 * 60));
$remainder = $remainder % (60 * 60);
$minutes = floor($remainder / 60);
$seconds = $remainder % 60;
if($days > 0)
echo date('F d, Y - H:i:sa', $post_row['date_created']);
elseif($days == 0 && $hours == 0 && $minutes == 0)
echo "A few seconds ago";
elseif($days == 0 && $hours == 0)
echo $minutes.' minutes ago';
elseif($days == 0)
echo $days.' day ago';
?>
<!-- end -->
<img src="../img/hour.png" alt= "hour logo" style = "width:10px";>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' class = "btn-delete">Delete</a>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Update</a>
</h6></div>
</div>
<?php }?>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Delete</a>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Update</a>
ito code ko
<div class="container col-md-9 mt-2 ">
<?php
$sql = mysqli_query($con, "SELECT *, UNIX_TIMESTAMP() - date_created AS TimeSpent FROM adminpost inner join registration on registration.user_id = adminpost.user_id ORDER BY date_created DESC") or dir (mysqli_error($scon));
while($post_row = mysqli_fetch_array($sql)){
$id_user = $post_row['username'];
$id_comment = $post_row ['comment_id'];
?>
<div class="comet">
<div><h6>    <i class="fa fa-user-circle-o"></i>  <?php echo $id_user; ?>     <i class="icon1 fa fa-hand-o-right" ></i> <a href=""><?php echo $post_row['title'];?></a>
<br>
<!-- date & time -->
<div class="date-time">   
<?php
$days = floor($post_row['TimeSpent'] / (60 * 60 * 24));
$remainder = $post_row['TimeSpent'] % (60 * 60 * 24);
$hours = floor($remainder / (60 * 60));
$remainder = $remainder % (60 * 60);
$minutes = floor($remainder / 60);
$seconds = $remainder % 60;
if($days > 0)
echo date('F d, Y - H:i:sa', $post_row['date_created']);
elseif($days == 0 && $hours == 0 && $minutes == 0)
echo "A few seconds ago";
elseif($days == 0 && $hours == 0)
echo $minutes.' minutes ago';
elseif($days == 0)
echo $days.' day ago';
?>
<!-- end -->
<img src="../img/hour.png" alt= "hour logo" style = "width:10px";>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' class = "btn-delete">Delete</a>
<a href= 'admincommentdelete.php?id=<?php echo $id_comment ?>' style="text-align:right;" class = "btn-delete">Update</a>
</h6></div>
</div>
<?php }?>