The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
|
ECHO OTHER DATATIME - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Documentation (https://userspice.com/forums/forumdisplay.php?fid=30) +--- Thread: ECHO OTHER DATATIME (/showthread.php?tid=603) |
ECHO OTHER DATATIME - picassoo - 06-19-2017 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 = ???? ECHO OTHER DATATIME - picassoo - 06-20-2017 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'; } ?> |