IF statement to display date or nothing (MySQLi Recordset)
I have several date columns in my database which hold a 0000-00-00 value and may never have a proper date value. I am trying to create an 'if' type statement to check if the column value in a MySQLi Recordset is 0000-00-00 and if so, to display nothing (or a piece of text) but if there is a date other than 0000-00-00 then to display that in d-m-Y format. Can anyone help please?