i have problem to show only day or month from dob in mysql. i did these steps,
first added a table in database:
ALTER TABLE `dle_users` ADD `dob` DATE NOT NULL;
second added this code in php file:
$dob = $db->super_query( "SELECT dob FROM dle_users");
$tpl->set("{dob}", $dob);
in profile page i got correct result like this: 1372-07-08 (its a persian date)
problem is, i need to show only day or month, not full date
i tried this ways:
$dob = date("m", $row['dob']);
$tpl->set("{dob}", $dob);
but it does not work! how i can fix this?
thank u :)