Jump to content

Fitting an HTML conditional comment inside a php code. Is not working for me


co.ador

Recommended Posts

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.