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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.