I found this code at Google's cached version of the manual for the
date() function:
http://216.239.37.104/search?q=cache:kq0aNfZeEp8J:www.php.net/date+diffe
rence+two+date+site:www.php.net&hl=en&ie=UTF-8
This code only returned the number of hours, minutes, and seconds
between the two points in ti
Try this (taken from http://us2.php.net/manual/en/ref.datetime.php):
*menaurus at gmx dot de*
16-Jul-2003 02:37
|The argument has to be in the standard mysql format (y-m-d)...
function age($date) {
if (!$date) return false;
$year=0+substr($date,0,4);
$month=0+substr($date,5,2);
$day=0+subs
Try something along the lines of
if($current_MM < $MM) {
$age = $calculatedage - 1;
}
you'll also need to do something like this with the day of the month if the
user's bday is in the current month.
at least... i think that works out :$
Craig Roberts
"John Ryan" <[EMAIL PROTECTED]> wrote in
Hi,
In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users
date of births. I need to calculate in a PHP script, the users age from this
DOB. I get a PHP date in the same format as the mySQL and subtract, which
returns the year rounded off. ie, it doesnt matter if your birthda
I use Eclipse with a PHP plugin it is open source, and also works for
Java.
Look at http://phpeclipse.sourceforge.net/ for more information.
Rob
"Craig Roberts" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It depends what you're looking for in an editor...
>
> Dreamweaver's
Hi all,
I have a big problem!
I just installed the new PHP 4.3.3 on my FreeBSD 4.4!
But all our costumers have a problem with sessions!
Let's say that a user is setting a session, it writes the data fine, but
when clicking a link the session file turns empty!
Anyone who know how to fix this pr
It depends what you're looking for in an editor...
Dreamweaver's nice because it shows you the arguments for all the
functions - but takes far too long to load for me to do a quick hack on a
script, so I only use it when I'm planning on spending the next few hours
coding on a particular site thats
There are only a few, probably less than 50, depending on your OS (you didn
t mention what OS you are using), If you go to Google and type in "free PHP
editor" you will see them all. Try them out and see which one suites your
style. Or look through the archives of this list and see what comments
p
Hi, does any one know if exist a free php editor like DreamWeaver? =) I know DreamW
it´s too much than an editor with all of the
duties... but I need something free...
Thank´s
Norma Ramirez
Hi Aaron,
I found this on a little useful when I started learning regex. Good
luck 2 ya!
adam
http://www.devshed.com/Server_Side/Administration/RegExp/
Hi All,
Sorry for OT post but need some info.
Does anyone know a good tutorial that explains regular expressions in
DUMMY terms?
I have a li
10 matches
Mail list logo