Search found 5 matches

by sc0tt
Mon Jan 25, 2010 1:52 am
Forum: PHP - Code
Topic: test if value is in multidimensional array
Replies: 3
Views: 55

Re: test if value is in multidimensional array

Thanks for your help. Not sure if this is the most efficient method; but it worked:

Code: Select all

<?php foreach ($field_headline_options as $value) {
    if ($value['value'] == 'headline-top') { ?>
         echo "found it";
                  break;
    }
         }
?>
Thanks again!
Scott
by sc0tt
Sun Jan 24, 2010 12:52 am
Forum: PHP - Code
Topic: test if value is in multidimensional array
Replies: 3
Views: 55

test if value is in multidimensional array

I have a multidimensional array and can't seem to get at the desired value "headline-inline". I know its there. I tried specifying the ['value'] along with the array name; but I got a warning. Here is the code:   <?php if (in_array("headline-inline", $field_headline_options)) {  ...
by sc0tt
Sat Jan 23, 2010 4:10 pm
Forum: PHP - Code
Topic: if statement not working in IE8
Replies: 5
Views: 191

Re: if statement not working in IE8

Thank you!
Worked perfectly and very fast!
Scott

PS. Can I buy you lunch?

PSS. Is there any way to support this board financially?
by sc0tt
Sat Jan 23, 2010 3:09 am
Forum: PHP - Code
Topic: if statement not working in IE8
Replies: 5
Views: 191

Re: if statement not working in IE8

Thanks for the commentary. Can you recomend a solution? Also, where are you getting the following? It's not from my original post and is invalid. 1. <a href="<?php print $node_url; ?>"><img src="http://www.newsite.fillmoregazette.com/sites/default/files/imagecache/640/images/2010/01/2...
by sc0tt
Sat Jan 23, 2010 1:35 am
Forum: PHP - Code
Topic: if statement not working in IE8
Replies: 5
Views: 191

if statement not working in IE8

Only in IE8, the presence of the following if statement results in no image being displayed, even though the page source is identical in FF, Chrome and IE8. <?php if (!$page) { ?>href="<?php print $node_url?>"><?php }. The if statement simply prevents the href statement from being added if...