Re: [nyphp-talk] JSON and MVC

2009-07-18 Thread Felix Shnir
On Jul 18, 2009 11:20 AM, "Daniel Convissor" < dani...@analysisandsolutions.com> wrote: Hello again: > $result = ; > > $out = array(); > foreach ($result as $row) { > $out[$row['loa... Oh, make that: $out[$row['loan_id']][] = $row; :/ --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M

Re: [nyphp-talk] JSON and MVC

2009-07-18 Thread Daniel Convissor
Hello again: > $result = ; > > $out = array(); > foreach ($result as $row) { > $out[$row['loan_id']] = $row; > } > > echo json_encode($out); Oh, make that: $out[$row['loan_id']][] = $row; :/ --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y d

Re: [nyphp-talk] JSON and MVC

2009-07-18 Thread Daniel Convissor
Hey Hans: In a prior engagement, we were using XUL as the view and JSON as the communication protocol. This was nice, since the entire user interface resided on the user's desktop (as a Firefox Add-on), all we needed to transmit was the data. Of course, you need to be using HTML, so transpos

Re: [nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread webmaster
Hello Ajai, Saturday, July 18, 2009, 8:23:48 PM, you wrote: > On Sat, 18 Jul 2009, webmas...@vbplusme.com wrote: >> The links that populate the array periodically change so I use PHP and >> MySQL to track and store the most current versions. I want to be able >> to do a query to populate the arr

Re: [nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread Ajai Khattri
On Sat, 18 Jul 2009, webmas...@vbplusme.com wrote: > The links that populate the array periodically change so I use PHP and > MySQL to track and store the most current versions. I want to be able > to do a query to populate the array and do a seamless merge into the > javascript to do the display.

Re: [nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread Ajai Khattri
On Sat, 18 Jul 2009, Michele Waldman wrote: > When you say dynamically I think of ajax. Technically, PHP pages are dynamic... -- Aj. ___ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.ny

Re: [nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread webmaster
> >> TIA for any ideas. >> >> >> -- >> Best regards, >> >> >> ___ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http

Re: [nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread Michele Waldman
This is a long post. When you say dynamically I think of ajax. It sounds like you only need this at runtime though. You could javascript eval and php json formatted variable. The downside is the json contents are visible when the user views source. Do you really need to place the links into ja

[nyphp-talk] PHP parsing to Javascript questions

2009-07-18 Thread webmaster
Hello talk, Hello and greetings. I have a standalone javascript that I have customized to do a banner display and I have a PHP script that loads link information into a MySQL. The javascript uses these links currently in its display but the links are manually entered into the javascript data defi