Advertisement
Guest User

Untitled

a guest
Feb 28th, 2011
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. $match = "/^\d{4}-\d{2}-\d{2} [0-2][0-3]:[0-5][0-9]:[0-5][0-9]$/";
  2.        
  3.         $s = $this->input->post("report_start"). " " . $this->input->post("report_start_time").":00";
  4.         $e = $this->input->post("report_end"). " " . $this->input->post("report_end_time").":59";
  5.        
  6.         if($this->input->post("action") != "")
  7.         {
  8.             echo trim($s). " => " . preg_match($match, trim($s));
  9.             echo "<br>";
  10.             echo trim($e). " => " . preg_match($match, trim($e));
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement