co.ador Posted November 12, 2009 Share Posted November 12, 2009 I am trying to makes the <h4> tags to appear online if IE 5 comes up.. But the way it is right now doesn't grab the html comment.. <div id="container4"> <div class="wrap"> <?php $query = "SELECT name, price, image moreinfo, id FROM rfolders WHERE id IN ( 1, 2, 3, 4)"; $result = mysql_query($query, $connection); $i = 1; while ($content = mysql_fetch_array($result)) { echo " <div class=\"shoeinfo1\"> <img src=\"images/spacer.gif\" alt=\"spacer\" class=\"spacer2\" /> <h2 class=\"infohead\">". $content['name'] . "</h2> <div class=\"pic\"><img class=\"line\" src= '". $content['image'] ."' alt=\"picture\" width=\"100%\" height=\"100%\" /></div> <h5> Rate:</h5>"; ?> <!--[if IE 5]<h4><![endif]--> <?php $ratingData = Rating::OutputRating($content['name']); if (Error::HasErrors()) { echo Error::ShowErrorMessages(); Error::ClearErrors(); } else { echo $ratingData; } ?> <!--[if IE 5]</h4><![endif]--> <?php echo"<h3>Prosedimiento:</h3> <p>Womens fashion shoes with higher heels generally have pre-made, thin, flexible, leather or resin rubber fitted soles, made using the bottom pattern created from the last. Two shapes of sole are made this way, one for a Louis heel, and the other for a Knock-on type. </p> <p><a href=\"#\">More</a></p></div> "; $i++; } if ($i > 1 && $i % 3 == 0 ) { echo "<div class=\"clearer\"></div>"; } ?></div> </div> Quote Link to comment Share on other sites More sharing options...
Caesar Posted November 12, 2009 Share Posted November 12, 2009 <?php if (preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT'])) $h4 = '<h4>You use IE? LOL U SUCK!</h4>'; else $h4 = '<h4>Good for you</h4>'; echo $h4; ?> 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.