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>';
                            }

Of course what a plonker - thanks for your help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.