Hello everyone, I state that I am new to the world of cakephp. I'm rewriting a program from a php to MVC. I need add a function that checks mean it is booked in a range of time from the input fields "from" and "until".
In PHP also make a query like: $query = "SELECT * FROM calendar WHERE id='$id_mean' AND confirm='1' AND ( ('".$from."' <= from AND '".$until."' >= until) OR ('".$from."' <= from AND '".$until."'<= until AND '".$until."' >= from) OR ('".$from."' >= from AND '".$until."'<= until)OR ('".$from."' >= from AND '".$from."' <= until AND '".$until."'>= until))"; $results = mysql_query($query) or die (mysql_error()); $num = mysql_num_rows($results); If the result is 0, then arming otherwise get an error message flash. How can I do the same in cakephp? Sorry for bad English. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en