Re: Easy News Script
| From: | Plutarck | Date: | Fri, 13 Apr 2001 02:36:05 +0000 |
| Subject: | Re: Easy News Script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48394@lists.php.net to get a copy of this message | ||
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"" <techzeus@pacific.net.sg> wrote in message
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 <chrisderson@ameritech.net>
> To: Zeus <techzeus@pacific.net.sg>; <php-general@lists.php.net>
> Sent: Friday, 13 April, 2001 1:27 AM
> Subject: Re: [PHP] Easy News Script
>
>
> > I prefer to write my own
> > ----- Original Message -----
> > From: "Zeus" <techzeus@pacific.net.sg>
> > To: <php-general@lists.php.net>
> > 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: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>