[FX.php List] else....An Epiphany

Jonathan Schwartz jonathan at eschwartz.com
Sun Jul 9 10:17:46 MDT 2006


Thanks for the suggestion, Erik. And a very 
belated thank you also to Dale Bengstrom, Steve 
Winter, Travis Kroh, Kevin Futter and Timothy 
Tait who also made suggestions when I first 
published this post in June. It turns out that I 
learned a lot more than just IF statements.

With this post and the wealth of expert responses 
I received on how to coax PHP to respond properly 
to nested IF statements (or better stated, how my 
*script* could be coaxed to talk with PHP 
properly), I had yet another epiphany in the long 
road to mastering FMP CWP with fx.PHP: It's all 
about learning PHP.

While anyone can successfully re-construct the 
simple scripts offered up in various fx.php 
examples and tutorials, the false sense of 
accomplishment that is gained by this initial 
success quickly falls away when you want to move 
past the simple script and build real-life 
scripts.  After trying to learn FMP CWP using 
fx.php by looking up a PHP function at a time, I 
now realize that that was equivalent to being 
dumped into a foreign language country with a 
cheat sheet of common phrases plus perhaps a 
dictionary: Good luck if wanted to move past 
"¿dónde está el teléfono?".

So, since June, I have been learning PHP from the 
ground up to create the base of knowledge 
necessary to
build FMP/fx.php solutions with confidence. 
While my kids played in the beach sand on our 
family vacation, I had my nose in PHP books. My 
favorite was Larry Ulman's "PHP for the World 
Wide Web" (Visual Start Guide, Peachpit Press). 
What a difference a little base education makes. 
Now, the sight of the most basic PHP functions 
doesn't send questions marks floating around my 
head.  And, the offering up various scripting 
alternatives from members on this list now make 
much more sense.

For the benefit of all those who desire to master 
FMP CWP with fx.php....take my advice.  Learn PHP 
as a first step. I wish I knew this before I 
started.  I'm certainly glad that I know it now.

HTH.

Regards,


Jonathan

At 11:57 PM +0200 7/8/06, Erik Andreas Cayré wrote:
>
>How about:
>
>	if ($findResult['email1isempty'][0] &&
>	$findResult['email2isempty'][0]) {
>

-- 

Jonathan Schwartz
Schwartz & Company
817 Marin Drive
Mill Valley, CA 94941
Phone: 415-381-1852
jonathan at eschwartz.com - http://www.eschwartz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060709/9eaae70c/attachment.html


More information about the FX.php_List mailing list