Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-11 Thread John Butler
What a lot of good ideas spawned from the OP! I am learning many things,.. while also actually working (paying bills), so I regularly have to just go with what I know well. Anyway, I already have the forearch { loop (for other reasons it is necessary), and I only needed one color to

Re: [PHP] Embedding foreach loops

2009-08-11 Thread John Butler
Allen, you off and running again? Sure am, thanks, on to the next set of issues. Seems like programming is always moving on from one error to the next :) Currently, I am having trouble with echo and php line-returns. It works on one part of the code, but not on another (instead, prints

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-11 Thread John Butler
What a lot of good ideas spawned from the OP! I am learning many things,.. while also actually working (paying bills), so I regularly have to just go with what I know well. Anyway, I already have the forearch { loop (for other reasons it is necessary), and I only needed one color to

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-11 Thread John Butler
He's pointing out a typo... forearch instead of foreach :) LOL! I almost always miss the jokes. Thanks for the smiley face to get my (lighter) attention ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-10 Thread John Butler
If you switch it around you'll get a notice because the IF evaluates from left to right. So you just want to make sure you check isset() first. This would throw a notice: if($_POST['UserWishesDateRange'] == 'T' isset($_POST['UserWishesDateRange'])) { Aha! That must be what I tried

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-10 Thread John Butler
If you switch it around you'll get a notice because the IF evaluates from left to right. So you just want to make sure you check isset() first. This would throw a notice: if($_POST['UserWishesDateRange'] == 'T' isset($_POST['UserWishesDateRange'])) { Aha! That must be what I tried and

Re: [PHP] Embedded foreach loops

2009-08-10 Thread John Butler
On Aug 10, 2009, at 3:43 PM, Jim Lucas wrote: Allen McCabe wrote: I am creating an order form for tickets for a list of performances at a performing arts center. Currently, the form is on paper, and is set up as follows: -Nutcracker - Tues 10/13 - 11am - $4.00 Thanks for letting us know

Re: [PHP] Embedding foreach loops

2009-08-10 Thread John Butler
creating the array and it's embedded arrays, in your code, then add this: var_dump($shows); //--so you can see what you just created. If it looks right, THEN go on bothering to try and parse it with your (embedded) foreach's { John Butler (Govinda) govinda.webdnat...@gmail.com

[PHP] how to say inverse your value (to a boolean)?

2009-08-10 Thread John Butler
quick Q: I have this inside a foreach{} that I want to alternate between on and off so I can alternate the background-color of my tr's. $tableRowBGcolorBoolCounter != $tableRowBGcolorBoolCounter; //-boolean on and off I am looking thru' docs and books, but can't remember (nor find now)

Re: [PHP] Embedding foreach loops

2009-08-10 Thread John Butler
I did this, and got my arrays dumped (on one line). After adding line returns, here is a snippet: it looks OK. Note that you can see (copy/paste) that array which you just dumped, much better, if you view the source code of the html page. OR you can use pre to make that format persist

Re: [PHP] Embedding foreach loops

2009-08-10 Thread John Butler
I am using the print function to display my html. I cannot get the line return ( \n ) character to actually push the html onto the next line, it just gets displayed instead. Should I be using echo? Allen, you off and running again? echo blah.. \n; //-- this will print the literal 'blah..

Re: [PHP] Re: how to say inverse your value (to a boolean)?

2009-08-10 Thread John Butler
echo something . (($a = $a^1) ? red\n : green\n); Re: The ? char in this line above.. where in the php docs can I read about what that is doing? I have not come across this construct before today, from you guys. thanks -John -- PHP General Mailing List (http://www.php.net/) To

[PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
that is because the error display settings are set to a more rigorous level in this latter site. Is this correct? (Both sites reside on servers where I am not the admin.) John Butler (Govinda) govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
-input.php The filter_* functions are only available in core since 5.2.0, though. OK, ..good to plant seeds, but since that server is PHP 4.3, I'll save my brain now for until I can actually integrate that study. John Butler (Govinda) govinda.webdnat...@gmail.com

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
if(isset($_POST['UserWishesDateRange']) $_POST['UserWishesDateRange'] == 'T') { Thought I tried that. Apparently not exactly; it works now! Thanks. I know it is clunky but I wanted to see how compact it could be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread John Butler
(1) 5 [t7solar_landing]= string(1) 6 [aweber_7solar_aw]= string(1) 3 } [2009-08-05]= array(3) { [aweber_7solar_confirm]= string(1) 1 [t7solar_landing]= string(1) 3 [aweber_7solar_aw]= string(1) 4 } ... John Butler (Govinda) govinda.webdnat

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread John Butler
It seems clear to me, but do you also agree that my evidence is that array_slice() does NOT work on multi-dimmed arrays on v.4.3.9? Here is the evidence: this: var_dump($BuildPerUniqueDateArray); echo\n\n~\n\n; array_slice($BuildPerUniqueDateArray, 1, 2);

[PHP] does array_slice not work on multidimensional arrays?

2009-08-07 Thread John Butler
was budgeted for this this script.. so I really want to avoid anything but the most newbie of hacks to achieve this.) //PHP Version 4.3.9 thank you for any reply! John Butler (Govinda) govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] does array_slice not work on multidimensional arrays?

2009-08-07 Thread John Butler
commentary. John Butler (Govinda) govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php