Re: Convert php to cfm

2012-01-11 Thread Tom Small
Hi Andrew, I am using ColdFusion9 and have downloaded json (serialize and deserialize) from cflibs. Although this may sound naive, can you tell me where to include both files, also how to cfoutput it via json to my datastore as I am a newbie...

Re: Convert php to cfm

2012-01-11 Thread Raymond Camden
Maybe I missed something important earlier in the thread, but why are you downloading JSON libraries? CF9 includes native JSON functions. On Wed, Jan 11, 2012 at 4:52 AM, Tom Small t...@re-base.net wrote: Hi Andrew, I am using ColdFusion9 and have downloaded json (serialize and deserialize)

RE: Convert php to cfm

2012-01-11 Thread andy matthews
:53 AM To: cf-talk Subject: Re: Convert php to cfm Hi Andrew, I am using ColdFusion9 and have downloaded json (serialize and deserialize) from cflibs. Although this may sound naive, can you tell me where to include both files, also how to cfoutput it via json to my datastore as I am a newbie

RE: Convert php to cfm

2012-01-11 Thread Andrew Scott
://plus.google.com/108193156965451149543 -Original Message- From: Tom Small [mailto:t...@re-base.net] Sent: Wednesday, 11 January 2012 9:53 PM To: cf-talk Subject: Re: Convert php to cfm Hi Andrew, I am using ColdFusion9 and have downloaded json (serialize and deserialize) from cflibs

Re: Convert php to cfm

2012-01-11 Thread Raymond Camden
Andrew, to be clear, are you saying Ext doesn't like the _structure_ of the data, or the format itself? CF9's JSON is valid JSON, so it must be the format. If so - there should be a way to create your CF variable so that when serialized, Ext will like it. For example, I've used jQuery Plugins

RE: Convert php to cfm

2012-01-10 Thread Edward Chanter
This seems like a pretty straightforward conversion. Create the datasource in the CF admin to point to MySQL and then simply write a cfquery with the same basic syntax as is used in the PHP. Specify maxrows=200 and then cfoutput it via json to your datastore. I might be missing something but it

Re: Convert php to cfm

2012-01-10 Thread Andrew Scott
Wow, and I wonder at times why PHP is so popular... Not being a Guru at PHP what you are trying to convert here is very simple, and this is not tested but as close to being right as I can think. cfquery name=result datasource= username=#username# passwqord=#password# SELECT nimid, level,

Re: Convert php to cfm

2012-01-10 Thread Phillip Vector
On Tue, Jan 10, 2012 at 8:01 AM, Andrew Scott andr...@andyscott.id.au wrote: Wow, and I wonder at times why PHP is so popular... Because it is cheaper to run it.. Nevermind the fact that you are paying developers allot more (as in, it takes more time) to code in PHP. :) Note the Sarcasm of

RE: Convert php to cfm

2012-01-10 Thread Edward Chanter
-Original Message- Wow, and I wonder at times why PHP is so popular... My thought too, this is a great example of why I love CF over PHP :) ~| Order the Adobe Coldfusion Anthology now!

Re: Convert php to cfm

2012-01-10 Thread Tom Small
Hi Andrew, thanks for your help and advice ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: