jd2007 Posted October 26, 2007 Share Posted October 26, 2007 function err() { $error = error_get_last(); echo $error['type'].":".$error['message']; } if (preg_match("/[0-3]{0,1}[0-9]{1}-[0-1]{1}[0-2]{1}-[0-2]{1}[0-9]{2}[0-9]{1}/is", "05-32-2003")==0) { err(); } the regex validates an usa format date. Quote Link to comment https://forums.phpfreaks.com/topic/74873-why-is-the-below-showing-a-wrong-error-message/ Share on other sites More sharing options...
jd2007 Posted October 26, 2007 Author Share Posted October 26, 2007 well, i got it fixed ! Quote Link to comment https://forums.phpfreaks.com/topic/74873-why-is-the-below-showing-a-wrong-error-message/#findComment-378546 Share on other sites More sharing options...
MasterACE14 Posted October 26, 2007 Share Posted October 26, 2007 topic solved Quote Link to comment https://forums.phpfreaks.com/topic/74873-why-is-the-below-showing-a-wrong-error-message/#findComment-378551 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.