This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($handle = opendir('directory')) { | |
/* This is the correct way to loop over the directory. */ | |
while (false !== ($entry = readdir($handle))) { | |
if($entry == '..' || $entry == '.'){ | |
continue; | |
} | |
$lists[] = $entry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//get date from db | |
$date = time(); | |
?> | |
<div class="controls"> | |
<?php echo form_error('event-start') ?> | |
<input value="<?php echo date('Y-m-d', strtotime($date)); ?>" required id="event-start" name="event-start" type="date" placeholder="" class="input-medium"> | |
<input value="<?php echo date('H:i:s', strtotime($date); ?>" required id="event-start-time" name="event-start-time" type="time" placeholder="" class="input-medium"> |