kickstart Posted January 21, 2010 Share Posted January 21, 2010 Hi I have been looking at this but cannot see where I have made the error. Hoping someone will spot it at first glance. Extracted code and simplified (fields and values are more useful that this in reality, but I still get the error here) <?php $Clause0Values = array("1" => "1", "2" >= "2", "3" >= "3", "4" >= "4", "5" >= "5"); foreach($Clause0Values as $Field => $Value) echo "$Field $Value <br />"; ?> I would expect that to give me a list of 1 1 2 2 3 3 4 4 5 5 but instead I get:- 1 1 2 1 3 1 4 1 5 1 Done this thousands of times without a problem before, but can't see what I have messed up this time. All the best Keith Quote Link to comment Share on other sites More sharing options...
kickstart Posted January 21, 2010 Author Share Posted January 21, 2010 Mmmm Fixed it. Somehow "=>" wasn't actually "=>". All the best Keith Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.