HTML gevorderde |
|
Als één van de drie variabelen leeg is, voert hij tòch de lus uit... hoe kan dat?
if(trim($day)=="" || trim($month)=="" || trim($year)=="")
{
$Select = "select count(id) from ".$TableName." where day = ".$day." and month = ".$month." and year = ".$year;
echo ("<H3>".$Select."</H3>");
}
{ $Select = "select count(id) from ".$TableName." where day = ".$day." and month = ".$month." and year = ".$year; echo ("<H3>".$Select."</H3>"); }
(Output = "select count(id) from agenda where day = and month = and year =")
|