[php]
<?php $con=mysqli_connect("localhost","root","","User_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM Assessments"); echo "Title | Lecturer | Start | Due | Completed |
---|---|---|---|---|
" . $row['Title'] . " | "; echo "" . $row['Lecturer'] . " | "; echo "" . $row['Start'] . " | "; echo "" . $row['Due'] . " | "; echo "" . $row['Completed'] . ""; echo " |
[/php]
Hi guys I wondering if there was a way that the checkbox gets automatically checked when for example if the due date is on 12/04/2013 then it checks the date and automatically checks the checkbox and it always stays checked, cannot be unchecked?