Show Birthday Day And Month In Words

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

6 replies · 778 views · started 18 years ago · 1 min read

5 participants
ori Lead · 512 posts #1

heres a lil code took me while to get it working so thought ya all mite like it i hav recoded it 4 ya for lavalair as it runs off date of birth its also set to work straight from the view profile page but i myself use it for wapsite profile page on http://teaze-n-plz.com

$info=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_users WHERE id='".$who."'"));
$exp_bday=explode("-",$info[birthday]);
$month=$exp_bday[1];
$day=$exp_bday[2];
$get1=date(m);
$get2=$month-$get1;
$get3=date(d);
$get4=$day-$get3;
$birthday=date("jS F",strtotime("$get2 months $get4 days"));
echo "[b]Birthday:[/b] ".$birthday."
";
SiLeNce Developer · 138 posts #3

where can get the year ?

ori Lead · 512 posts #4

that should show year as well not tested it though but dnt see y it wont work lol why u want to see the year anyway?

$info=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_users WHERE id='".$who."'"));
$exp_bday=explode("-",$info[birthday]);
$month=$exp_bday[1];
$day=$exp_bday[2];
$year=explode("-",$exp_bday[0]);
$year=$year[0];
$get1=date(m);
$get2=$month-$get1;
$get3=date(d);
$get4=$day-$get3;
$get5=date(Y);
$get6=$year-$get5;
$birthday=date("jS F Y",strtotime("$get2 months $get4 days $get6 years"));
echo "[b]Birthday:[/b] ".$birthday."
";
ori Lead · 512 posts #6

yeah the code is for the birthday of a user y would u need year lol think they dnt get what the code is 4

alesh Lead · 604 posts #7

i done it monts b4 but i wonder sumthng else....

since my language is Croatian, is it posible 2 get a date from server in my langage??

im on croatian server valkira.hr but the date is still shown in english language...

cn it be sumhow fixed tht server is showing me date in my language??

eeeeerrr....

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close