[PHP] different value in array

2006-07-29 Thread weetat
Hi all, I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2 elements If value different

[PHP] compare value in 2 multidimension array

2006-07-29 Thread weetat
Hi all , I have 2 multidimension array as shown below: I need to compare all values in the 2 multidimension array where there are any elements values updated or a new elements or be deleted. Updated mean when value in $temptablearr element is different from value in $currenttablearr

Re: [PHP] different value in array

2006-07-29 Thread Paul Novitski
At 11:18 PM 7/28/2006, weetat wrote: I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2

[PHP] PAYPAL TRANSACTION.

2006-07-29 Thread BBC
Hi list.. Please any one point me to the web which talk about making transaction with paypal step by step. Some body offered me the source code and tutorial but until know he or she didn't send me. Best Regards BBC **o0o** --

Re: [PHP] different value in array

2006-07-29 Thread Paul Novitski
At 12:20 AM 7/29/2006, Paul Novitski wrote: You might consider concatenating all the elements in each sub-array to make the comparison logic simpler, e.g.: foreach ($currenttablearr as $key = $subarray) { $comparisonArray[$key] = explode(_, $subarray); }

[PHP] Re: different value in array

2006-07-29 Thread John Wells
Nice tip Paul. Weetat, I'm a bit concerned about your data as I look at it, and think the approach I mentioned before needs a rewrite: Do you have a a primary key in your arrays/rows? Meaning, how can you tell if the two arrays you're comparing are just plain _different_, or simply out of

[PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI cache is not connected to the web server cache: From:

[PHP] Saving a dynamic file

2006-07-29 Thread MIGUEL ANTONIO GUIRAO AGUILERA
Hi!! I'm in the need of saving to a file a dynamic page that I generated from a PHP script, taking data from a table!! So far I have figured out two options: 1) Save the page as a XML document so it can be editable in a word processor later. Do I have to write line by line until I'm done

[PHP] COULD NOT RESEND HEADER..

2006-07-29 Thread BBC
Hi all. I try to make a page which checks the entire database and folder content, which able to delete all invalid data's in the folder and warns the user if an invalid data found in database. However I found the bug with 'header()' The codes below are not able to resend header if it's already

Re: [PHP] COULD NOT RESEND HEADER..

2006-07-29 Thread John Wells
On 7/29/06, BBC [EMAIL PROTECTED] wrote: The error message: could not resend header, header already sent in line.. It isn't a bug. What it's saying is completely accurate. You can only send header information to the browser once. As soon as you output *anything* (via echo/print), headers

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI

Re: [PHP] Saving a dynamic file

2006-07-29 Thread Larry Garfield
Depends what you're saving it for. Either of those options works, although you'd probably find it easier to save to OpenDoc format rather than Word, as OpenDoc is just XML with compression (and used by every major word processor except Word). Saving just a plain XML file is the same as

[PHP] Populating drop downs

2006-07-29 Thread Skip Evans
Hey all, Since I get so much great info and help from the lists I'm on, every now and then I like to try and give something back. I just finished some code that is pretty useful for populating one drop down based on the selection of a previous one, so I thought I'd pass it along in case

[PHP] Re: Populating drop downs

2006-07-29 Thread Manuel Lemos
Hello, on 07/29/2006 03:30 PM Skip Evans said the following: Since I get so much great info and help from the lists I'm on, every now and then I like to try and give something back. I just finished some code that is pretty useful for populating one drop down based on the selection of a

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Ray Hauge wrote: On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest