Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.116.86.134
<?php
include("sys_connect.php");
include("sys_mainphp.php");
include("sys_session.php");
$mysql="select * from taskreminder where ftaskasto='$empl_id' and ftaskstat='PENDING' and fdeleted<>'T' order by ftaskdate";
$myres = mysqli_query($mycon,$mysql) or die(mysqli_error($mycon));
$mycnt = mysqli_num_rows($myres);
if($mycnt>0)
{
while($row = mysqli_fetch_assoc($myres))
{
$curr_date = date('d-M-Y');
$task_name = $row['ftaskname'];
$task_from = $row['ftaskfrom'];
$empl_name = get_empl_name($task_from);
$task_date = date('d-M-Y',strtotime($row['ftaskdate']));
$last_date = date('d-M-Y',strtotime($row['flastdate']));
echo "<a onClick=window.location='task_reminder.php'><span class='glyphicon glyphicon-tasks'></span> ";
echo "Task pending: $task_name, Due date: $last_date, Assigned By: $empl_name";
echo "</a>";
}
}
else
{
echo "<p class='bg-info'>No pending tasks!</p>";
}
?>
|