0

HI I have an else if statement that all the results are coming out as the first if even though in the info row they are different in the table, hope someone can help.

// showbanners
                            if($row['info'] ="Some Apples")
                            {
                                $showbanners = '<img src="1.png"><br><br><img 

src="2.png">';
                            } 
                            elseif($row['info'] ="Some Bananas")
                            {
                                $showbanners = '<img src="1.png"></span>';
                            }
                            else
                            {
                                $showbanners = '<img src="1.png"></span>';
                            }
2
Contributors
2
Replies
19
Views
4 Years
Discussion Span
Last Post by mpc123
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.