Re: [PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread Jochem Maas
pere roca wrote: > hi everybody, > there is a nice tool using jquery/php to populate multiple select boxes out > there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ > > it must be a very stupid question but I’m trying to apply this tool to get > data from postgreSQL, but I

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hello All, > > Is the a built-in PHP call that I am overlooking which lets me > replace key values in an array. > >$inputArray = array(0 => array, 1 => array); (generated programtically) > >I want to end up with : > >$newArray = array('FAF1' => array,

Re: [PHP] howto get .tar.gz content's filenames

2007-12-05 Thread Cesar D. Rodas
On 05/12/2007, Per Jessen <[EMAIL PROTECTED]> wrote: > > Cesar D. Rodas wrote: > > > Call exec is not good, because you are executing other program, > > instead of that you should use some PHP program, take a look here > > > > http://www.phpclasses.org/search.html?words=tar&x=0&y=0&go_search=1 > >

Re: [PHP] Maps

2007-12-05 Thread Daniel Brown
On Dec 5, 2007 1:27 PM, Robert Fitzpatrick <[EMAIL PROTECTED]> wrote: > Well, I have two clients that both want mapping for their sales people. > I have been looking at the Google API and Phoogle > (www.systemsevendesigns.com/phoogle). I assume with these examples I > will be able to produce what t

[PHP] Maps

2007-12-05 Thread Robert Fitzpatrick
Well, I have two clients that both want mapping for their sales people. I have been looking at the Google API and Phoogle (www.systemsevendesigns.com/phoogle). I assume with these examples I will be able to produce what they need? Which is to select several addresses and produce a fastest route map

[Fwd: Re: [PHP] Maps]

2007-12-05 Thread Jochem Maas
I forgot to CC the list, sorry. Original Message Subject: Re: [PHP] Maps Date: Wed, 05 Dec 2007 20:25:06 +0100 From: Jochem Maas <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> Robert Fitzpatrick wrote: > Well, I have two clients that both want mapping

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Quoting Jochem Maas <[EMAIL PROTECTED]>: > ... >> >> $newArray = array('FAF1', 'ODM1', /* bla bla bla */); >> $inputArray = array_combine($newArray, $inputArray); >> >> I guess reading through this page was too much trouble for you: >> >> http://php.net/array >

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread scotdiddle
Jochem, Yes, that did the trick quite nicely. As I said, I overlooked it... a function called array_combine did not cause me to read the drill-down, because I figured it was for a union of two arrays ( it is, kind of... ) and I wanted to replace key values, not combine arrays : array_c

Re: [PHP] Calendar

2007-12-05 Thread Andrew Ballard
On Dec 5, 2007 6:09 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > There is not much "simple" about a calendar, especially when you start > > dealing with recurring events. How far into the future your calendar > > allow events to recur will depend at least in part on how you intend > > to store

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Jochem, > > Yes, that did the trick quite nicely. > > As I said, I overlooked it... a function called array_combine did not > cause me to read the drill-down, because I figured it was for a union of > two arrays ( it is, kind of... ) and I wanted to replace key valu

[PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread scotdiddle
Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 => array, 1 => array); (generated programtically) I want to end up with : $newArray = array('FAF1' => array, 'ODM1' => array); Thanks. Scot L.

Re: [PHP] Re: Need a hint how to track an error

2007-12-05 Thread Jochem Maas
Al Rider wrote: > The key word in my assertion "Make your code W3C compatible and it'll > work on all modern browsers." is "modern". I've never had a browser > incompatibly with IE7, Netscape browsers, etc. very good. here in the real world IE6 still makes up a very significant number of browser

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread C.R.Vegelin
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, December 05, 2007 1:00 PM Subject: [PHP] Array numeric key -> alpha key replacement Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = ar

Re: [PHP] Array numeric key -> alpha key replacement

2007-12-05 Thread scotdiddle
Quoting Jochem Maas <[EMAIL PROTECTED]>: [EMAIL PROTECTED] wrote: Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 => array, 1 => array); (generated programtically) I want to end up with : $newArray

[PHP] Configure option for external expat directory

2007-12-05 Thread Elyse Salberg
PHP version: 5.2.5 / Platform: Solaris 9 (SPARC) / Expat version: 1.95.8 The PHP manual's section on XML ( http://us2.php.net/manual/en/ ref.xml.php ) states that the "--with-expat-dir=DIR" option should be used if you wish to use an external expat library. However, when I attempted to do s

Re: [PHP] Calendar

2007-12-05 Thread Richard Heyes
There is not much "simple" about a calendar, especially when you start dealing with recurring events. How far into the future your calendar allow events to recur will depend at least in part on how you intend to store them. For instance, you can store them in a database where you create a separate

[PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread pere roca
hi everybody, there is a nice tool using jquery/php to populate multiple select boxes out there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ it must be a very stupid question but I’m trying to apply this tool to get data from postgreSQL, but I always get an empty [] valu

[PHP] zip codes and lat/longs

2007-12-05 Thread tedd
Hi gang: I'm entertaining how to determine what zip codes fall within a 50 mile radius of another zip code. Anyone done this before? Also, does anyone have any sources for zip codes and lat/long databases? TIA for any help/suggestions. Cheers, tedd -- --- http://sperling.com http://an

RE: [PHP] zip codes and lat/longs

2007-12-05 Thread Bastien Koert
hate to say it,but there is lots on google like http://www.code322.com/zipcode_locator.php bastien> Date: Wed, 5 Dec 2007 20:58:52 -0500> To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Subject: [PHP] zip codes and lat/longs> > Hi gang:> > I'm entertaining how to determine what zip c

Re: [PHP] zip codes and lat/longs

2007-12-05 Thread mike
Here's code I had, but it recently stopped working It takes the zip code for the user and the user you're viewing, looks them up from the data table (z_data_zips) and does the calculation. The formula is in a handful of places - I converted mine from a MySQL example (I think, or vice versa) You c

[PHP] Professional inquiry for you freelancers

2007-12-05 Thread Steve Finkelstein
Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities? These are questions I'm enter

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Jeremy Privett
Steve Finkelstein wrote: Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities? Th

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Paul Scott
On Wed, 2007-12-05 at 23:33 -0500, Steve Finkelstein wrote: > Basically what I'm asking is, am I going to be end up being a jack of > all trades, master of none, if I continue pursuing design AND > development? Is there plenty of work out there for folks who just > stick to development? > It all

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Nathan Nobbe
On Dec 5, 2007 11:33 PM, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > Basically what I'm asking is, am I going to be end up being a jack of > all trades, master of none, if I continue pursuing design AND > development? Is there plenty of work out there for folks who just > stick to development?

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread tedd
At 11:33 PM -0500 12/5/07, Steve Finkelstein wrote: Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your pr

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I am trying to recursively send data to the same form. Based on the data, I want to determine which "action" is to be processed. It appears that the $_POST is not being cleared out or cached once it is sent to the server. Here is my code that I'm trying to test with. It doesn't seem to consi

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I'm trying to -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
Hm. Tell me if this works: '; else echo ''; ?> Pass Fail On Dec 5, 2007 9:30 PM, Mike Smith <[EMAIL PROTECTED]> wrote: > I'm trying to > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Casey -- PHP General Mailing Li

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
"; ?> >I am trying to recursively send data to the same form. Based on the data, I >want to determine which "action" is to be processed. It appears that the >$_POST is not being cleared out or cached once it is sent to the server. >Here is my code that I'm trying to test with. It doesn't

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
Or try "; ?> There are a 1000 and 1 ways to make the script smaller yet still produce the same effect. Remember there is no reason to declare the POST array for matching in this particular setup. Some may disagree Notice I added a error checking if the array is blank. I am going to stop at t

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
'; ?> >:D On Dec 5, 2007 11:35 PM, <[EMAIL PROTECTED]> wrote: > Or try > > echo " == "")){echo "success.php";}ELSE{echo "recursive.php";}echo " METHOD='post'>"; > ?> > > There are a 1000 and 1 ways to make the script smaller yet still produce the > same effect. > Remember there is no reason to

RE: [PHP] Another form handling posting question

2007-12-05 Thread jencisson
hi,mike i suggest that you use Javascript to done this work. like this: ... function submitprocess(){var pobj=document.getElementById("process");var fobj=document.getElementById("form1");if (pobj.value=="pass"){ fobj.action="sucess.php";//change form1's action value return true;//submit the