Im doing a reservation site for a project.
And Im trying to disable radio button(s) if the sql statement returns true.
Example:
User selects a date and a time, and radio button(s) would be disable depending on database.
So far, I have this:
$result=mysqli_query($mysqli,"SELECT tableselect FROM reserve WHERE reserveDate = '". $date ."' AND reserveTime = '". $time ."'");
if($row = $result->fetch_array(MYSQLI_ASSOC)){
echo $row['tableselect'];
if($t){?>
//WHAT MUST BE HERE?
<?php
}
}
Doing it on PHP, JQuery. Please help?