[Solved] PHP doesn’t follow if..else conditions


You cannot check value of colActualStart by checking the result of the mysqli_query.

After your mysqli_query, your must call a fetch function to retrieve data, like you did 2 lines below.

A something like that and it will work :

$checker=mysqli_fetch_array(mysqli_query($con, "SELECT colActualStart FROM tblChecklist WHERE colEntryID='1' AND colDate="Aug 19,2014""));
    if($checker[0] != NULL){

1

solved PHP doesn’t follow if..else conditions