Re: Am I missing Something

From: Date: Fri, 30 Jan 2004 14:06:56 +0000
Subject: Re: Am I missing Something
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176340@lists.php.net to get a copy of this message
You have: select date_format('%c', date_column) .... You need: select date_format('%c', date_column) AS date_column .... Else the column name in the result is "date_format('%c', date_column)". Phillip S. Baker wrote:
Greetings all, I am running version 4.3.4 of PHP. Fairly recently. I am trying to call a pretty basic programming tool. Maybe I am just really tired, or something but I am not getting what is going on. Is there something I am missing. I am pulling a SQL call on a date to get the month. I am using Date_format and the %c to get the Month in numeric format. The I plug it into a variable and my intention is to call it as the index of an array. Nothing prints. When I turn on all notices I get a notice that it is an undefined index. What the heck is going on?? Thanks Phillip


« previous php.general (#176340) next »