It's easy once you get the hang of it.

I use:

// Format of MySQL DATETIME timestamp.
$time = date("Y-m-d H:i:s");

$time is ready for insertion into MySQL. To get the time out though you'll
need to use the unix timestamp function in mysql.

That's a bit tougher to get the hang of :)


--
Plutarck
Should be working on something...
...but forgot what it was.


""Zeus"" <[EMAIL PROTECTED]> wrote in message
004e01c0c3b0$5dc7a7c0$1cd218d2@zeus">news:004e01c0c3b0$5dc7a7c0$1cd218d2@zeus...
> True but hehe I can't seem to do it witht he datetime thing.
>
> I'm not sure how am I going to insert the date and time into the mySQL
> database.
>
> ----- Original Message -----
> From: Chris Anderson <[EMAIL PROTECTED]>
> To: Zeus <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, 13 April, 2001 1:27 AM
> Subject: Re: [PHP] Easy News Script
>
>
> > I prefer to write my own
> > ----- Original Message -----
> > From: "Zeus" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 12, 2001 10:11 AM
> > Subject: [PHP] Easy News Script
> >
> >
> > I'm sure many of you heard of newsphp ? (the newspro-clone).
> >
> > Somehow I felt attached to it except that it doesn't use databases for
its
> > file storing.
> >
> > Does anyone know a good similar script (easy to setup) that uses mySQL?
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to