after looping it the next date and time goes to its side on and on
if(isset($_REQUEST["action"]) && $_REQUEST["action"] == "checked" && $_REQUEST["id"]){
$id=$_REQUEST["id"];
$query = mysql_query("SELECT * FROM appointments WHERE dent_id='".$id."'") or die(mysql_error());
$total_results = mysql_num_rows($query);
if ($total_results > 0){
while($resulta=mysql_fetch_array($query)){
echo "<div style=\"
top:100px;
width:265px;
border:10px solid #CCCCCC;
\">";
echo "Days/time not available <br/><br/>";
echo "<table border=\"1\">";
echo "<tr><td>Date</td><td>Time</td></tr>";
for($i = 0; $i < mysql_num_rows($query); $i++){
$date= mysql_result($query,$i,'date');
$time= mysql_result($query,$i,'time');
echo "<td>".$date."</td>";
echo "<td>".$time."</td>";
}
echo "</table>";
echo "</div>";
}
}else{
echo "<div style=\"
top:100px;
width:265px;
border:10px solid #CCCCCC;
\">Available on all days and time..</div>";
}
}
here's the codes needed for that
any help would be appreciated well..

New Topic/Question
Reply




MultiQuote




|