Re: [PHP] Array_diff problems

2012-04-27 Thread Rick Dwyer
Thanks to both for the direction. --Rick On Apr 27, 2012, at 4:13 PM, Jim Giner wrote: > > > Are these arrays nested in an array? In that case the manual says you have > to do the compare differently. On Apr 27, 2012, at 4:19 PM, admin wrote: > > > -Original Message- > From:

RE: [PHP] Array_diff problems

2012-04-27 Thread admin
-Original Message- From: Rick Dwyer [mailto:rpdw...@earthlink.net] Sent: Friday, April 27, 2012 3:37 PM To: PHP-General Subject: [PHP] Array_diff problems Hello all. I have two arrays and when compared against each other via array_diff, I do not get any output: $myarray1 = Array ( [0]

[PHP] Re: Array_diff problems

2012-04-27 Thread Jim Giner
"Rick Dwyer" wrote in message news:0c0e6cc9-089d-4938-8b50-c9e12dfb3...@earthlink.net... Hello all. I have two arrays and when compared against each other via array_diff, I do not get any output: $myarray1 = Array ( [0] => Array ( [id] => 1 [Funding_Type] => Federal [Amount] => 10 [Frequency

[PHP] Array_diff problems

2012-04-27 Thread Rick Dwyer
Hello all. I have two arrays and when compared against each other via array_diff, I do not get any output: $myarray1 = Array ( [0] => Array ( [id] => 1 [Funding_Type] => Federal [Amount] => 10 [Frequency_Description] => Total [Other_Funding] => ) [1] => Array ( [id] => 2 [Funding_Type] => Tru

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie wrote: > On 04/27/2012 10:56 AM, Chris Stinemetz wrote: >> I still haven't been able to find a solution. Is there anyone out >> there that knows how to keep the query string intact? >> >> Thank you, >> >> Chris > > urlencode($storerow['store_subject

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
On 27 Apr 2012 at 16:56, Chris Stinemetz wrote: > On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote: >> On 26 Apr 2012, at 18:37, Jim Giner wrote: >> >>> I"m no expert, but why would you expose a query to the world thru the use of >>> a GET?  Why not just collect the params and build the st

Re: [PHP] url string being split

2012-04-27 Thread Shawn McKenzie
On 04/27/2012 10:56 AM, Chris Stinemetz wrote: > I still haven't been able to find a solution. Is there anyone out > there that knows how to keep the query string intact? > > Thank you, > > Chris urlencode($storerow['store_subject']) -- Thanks! -Shawn http://www.spidean.com -- PHP General Ma

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote: > On 26 Apr 2012, at 18:37, Jim Giner wrote: > >> I"m no expert, but why would you expose a query to the world thru the use of >> a GET?  Why not just collect the params and build the string in your code? >> That is how people hack into your d

RE: [PHP] Insert group by

2012-04-27 Thread admin
$sql='select count(*) as count, searchkeywords from searchkeywords group by searchkeywords having searchkeywords LIKE searchkeywords order by count desc' Ir this does not work for you explore the HAVING CLAUSE -Original Message- From: Rick Dwyer [mailto:rpdw...@earthlink.net] Sen

Re: [PHP] Serving a .dmg via readfile?

2012-04-27 Thread Matijn Woudt
On Thu, Apr 26, 2012 at 8:20 PM, Brian Dunning wrote: > Thanks, this suggestion from Dante completely solved the problem. > > Replaced: > > readfile('/var/www/mypath/My Cool Image.dmg'); > > With: > > $fd = fopen ('/var/www/mypath/My Cool Image.dmg', "r"); > while(!feof($fd)) { >    set_time_limit

Re: [PHP] Insert group by

2012-04-27 Thread Lester Caine
Rick Dwyer wrote: This is more of a MySQL question, but I'm hoping it can be answered here. On one of my pages, I issue a SQL command to group data as such: $sql='select count(*) as count, searchkeywords from searchkeywords group by searchkeywords order by count desc' Works well... but I would