The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ECHO OTHER DATATIME
#1
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 = ????
  Reply
#2
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';
}
?>
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)