If date is == 0000-00-00 question |
I have this code on my controller which get the users date of birth. It should show nothing if the date is 0000-00-00 from database but for some reason if not set then shows 01-01-1970
How can I make sure that if the date says 0000-00-00 on database then it will go to this $data['dob'] = ''; PHP Code: if ($this->input->post('dob')) {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
If date is == 0000-00-00 question - by wolfgang1983 - 05-18-2017, 12:14 AM
RE: If date is == 0000-00-00 question - by Rufnex - 05-18-2017, 12:40 AM
RE: If date is == 0000-00-00 question - by wolfgang1983 - 05-18-2017, 01:46 AM
|