Dawn H wrote:
> 
> -----Original Message-----
> From: Les Roberts [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 17, 2001 9:06 PM
> Cc: Dawn H
> Subject: Fwd: FW: FW: HELP! functions don't work...
> 
> first I apologize for the bad function name... I had changed it to several
> and left it at dayname() which, as you noted, is not valid.  But
> monthname(), which is valid, fails exactly the same way.
> 
> note the page
> 
> http://65.108.143.207
> 
> says: Fatal error: Call to undefined function: monthname() in
> /home/ccrb/ccrb-www/index.html on line 7
> 
> and the code
> 
> printf("test for jon... monthname is %s",monthname("2001-06-17"));
> 
> Again, I apologize.  Nothing is worse than asking for help and not getting
> the supporting evidence right.
> 
> >-----Original Message-----
> >From: Don Read [mailto:[EMAIL PROTECTED]]
> >Sent: Sunday, June 17, 2001 2:38 PM
> >To: Dawn H
> >Subject: RE: FW: HELP! functions don't work...
> >
> >
> >
> >On 17-Jun-01 Dawn H wrote:
> > >
> > >
> > > -----Original Message-----
> > > From: Les Roberts [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, June 17, 2001 9:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: HELP! functions don't work...
> > >
> > >
> > > please pass along to anyone who might help...
> > >
> > >
> > > If you look at http://65.108.143.207/ you'll see I get the following
> >error:
> > >
> > > Fatal error: Call to undefined function: dayname() in
> > > /home/ccrb/ccrb-www/index.html on line 8
> > >
> > > This indicates that I'm missing most all of the functions.  Is there a
> > > standard include that I need, or is my php installation not complete?
> > >
> > > Here is the line of code in question:
> > >
> > > <?php
> > > printf("test for jon... dayname is %s",dayname("2001-06-17"));
> > >
> > >
> >
> >localhost.dread$ pwd
> >/usr/local/share/doc/apache/phpmanual
> >localhost.dread$ grep dayname *
> >localhost.dread$
> >
> >There isn't a PHP function 'dayname',
> >date(), strftime(). & mktime() are what you are looking for.
> >
> >Regards,
> >--
> >Don Read                                       [EMAIL PROTECTED]
> >-- It's always darkest before the dawn. So if you are going to
> >    steal the neighbor's newspaper, that's the time to do it.
>  Filter fixer: database,sql,query

Hi,

It seems that you are confusing SQL and PHP functions.
Within mysql, monthdate works:
mysql> select monthname("2001-06-17");
+-------------------------+
| monthname("2001-06-17") |
+-------------------------+
| June                    |
+-------------------------+
1 row in set (0.00 sec)

I don't know you to do that in PHP, I don't have any PHP experience.
BTW, If your question is "How to print monthname in PHP", may be
you should ask on a PHP mailing list.

Regards
--
Joseph Bueno
NetClub/Trader.com

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to