hi,
This solution code.
$sql4="select count(*) as Under_warrenty from machine_details where warranty_renewal_date >='$current_date'";
$result4 = mysql_query($sql4) or die('Query failed: ' . mysql_error());
if ($result4) {
while ($row4 = mysql_fetch_assoc($result4)) {
$totlapoll4=$row4["Under_warrenty"];
}
}
$sql5="select count(*) as OutOf_warrenty from machine_details where warranty_renewal_date <'$current_date'" ;
$result5 = mysql_query($sql5) or die('Query failed: ' . mysql_error());
if ($result5) {
while ($row5 = mysql_fetch_assoc($result5)) {
$totlapoll5=$row5["OutOf_warrenty"];
}
}
What a silly thing!