Re: [php-list] Sorting Multidimensional Arrays

2008-07-12 Thread listgroups08
- Original Message - From: "bryan_is_south" Hello, I have a multidimensional array, and would like to sort it by the value of the last array. Here's the idea of what I've got: $Scores[$artist][$album]=$avg; So the $Scores array contains an array for each artist, and each $artist array

Re: [php-list] Date display format

2008-07-12 Thread James Keeline
--- Tedit kap <[EMAIL PROTECTED]> wrote: > I would like to modify the dae display format, for the dates stored in my > database. > It is stored like this: 2008-07-01 > I want to print as: July, 1st > Now I wrote something as below, but it displays Dec 31st instead of July 1st. > (And in my databa

Re: [php-list] Sorting Multidimensional Arrays

2008-07-12 Thread listgroups08
- Original Message - From: "bryan_is_south" Hello, I have a multidimensional array, and would like to sort it by the value of the last array. Here's the idea of what I've got: $Scores[$artist][$album]=$avg; So the $Scores array contains an array for each artist, and each $artist array

Re: [php-list] Date display format

2008-07-12 Thread Wade Smart
Dec 31st instead of July >> 1st. (And in my database Dec31 is nowhere anyway). Please tell me how to fix. >> Here is the relevant part of code: >> while ($row = mysql_fetch_array($query)) { >> $c1=$row['date']; >> $c=date('F jS',$c1); >> ec

Re: [php-list] Date display format

2008-07-12 Thread Wade Smart
my database Dec31 is nowhere anyway). Please tell me how to fix. > Here is the relevant part of code: > while ($row = mysql_fetch_array($query)) { > $c1=$row['date']; > $c=date('F jS',$c1); > echo"" . $c."". $row['title'] . "" ;

[php-list] Date display format

2008-07-12 Thread Tedit kap
Hi, I would like to modify the dae display format, for the dates stored in my database. It is stored like this: 2008-07-01 I want to print as: July, 1st Now I wrote something as below, but it displays Dec 31st instead of July 1st. (And in my database Dec31 is nowhere anyway). Please tell me how

Re: [php-list] PHP Font switcher

2008-07-12 Thread James Keeline
--- Hayden's Harness Attachment <[EMAIL PROTECTED]> wrote: > From the web site: > > http://php.net/manual/en/control-structures.switch.php > > I came up with the code: > > if ((!$sitestyle) || $sitestyle == 'layout' ) { > echo 'Increase Font > Size'; > echo 'Decrease Font > Size'; > echo 'Def

[php-list] Sorting Multidimensional Arrays

2008-07-12 Thread bryan_is_south
Hello, I have a multidimensional array, and would like to sort it by the value of the last array. Here's the idea of what I've got: $Scores[$artist][$album]=$avg; So the $Scores array contains an array for each artist, and each $artist array contains an array for each album by them. The value f

[php-list] PHP Font switcher

2008-07-12 Thread Hayden's Harness Attachment
>From the web site: http://php.net/manual/en/control-structures.switch.php I came up with the code: Increase Font Size'; echo 'Decrease Font Size'; echo 'Default Font Size'; } switch ((!$sitestyle) || $sitestyle == 'layout' ): case layout_medium: echo 'Default Font Size'; break; case "layou