Hi who to echo if datatime is not present ?
$programareTodayQ = $db->query("SELECT * FROM programare WHERE pro_data = ?",array($maine));
$usersHour = $programareTodayQ->results();
$maineCount = $programareTodayQ->count();
here if = ????
I fix
<?php
//Cycle -------------------------------------------------
foreach ($maineCS as $v1)
{
?>
<div class="notice notice-danger">
Maine <b><?=$v1->pro_nume?></b> Programat: <span class="red"><b><?=$v1->pro_data?> ora: <?=$v1->pro_ora?></b></span> Pet: <?=$v1->pro_animal_nume?> kg: <?=$v1->pro_kilograme?> Telefon: <?=$v1->pro_telefon?><p>Servicii: <span class="label label-success"><?=$v1->pro_pachet_mini?></span> <span class="label label-warning"><?=$v1->pro_pachet_mediu?></span> <span class="label label-danger"><?=$v1->pro_pachet_maxi?></span> <span class="label label-primary"><?=$v1->pro_tuns?></span> <span class="label label-primary"><?=$v1->pro_spalat?></span> <span class="label label-primary"><?=$v1->pro_uscat?></span> <span class="label label-primary"><?=$v1->pro_taiat_ungi?></span> <span class="label label-primary"><?=$v1->pro_curatat_urechi?></span> <span class="label label-primary"><?=$v1->pro_vidat?></span> <span class="label label-primary"><?=$v1->pro_pernute?></span> <span class="label label-primary"><?=$v1->pro_periat?></span> <span class="label label-primary"><?=$v1->pro_parfumat?></span> <span class="label label-primary"><?=$v1->pro_fundita?></span>
</div>
<?php
}
if(empty($maineCS))//or if(!$results) or if(count($results)==0) or if($results == array())
{
echo 'Nu sunt programari';
}
?>