Code issue with Internet Explorer only

Hi all,

I'd like to know if anyone can see any issues in my code which might affect Interet Explorer.

Works fine on all other browsers but it's all over the place on IE.

This one is db driven, but if I do all the code non-db driven (i'e) insert the links manually it works fine on IE so it must be a problem with the loop?

Hope someone can help.

Please see code attached.

thx


<?php    
    echo '<div id="rightb" style="float:left">';
	echo '<div id="lefttopheader">Section 1</div>';
    echo '<div class="menu">';
              
 
$result = mysql_query("SELECT * FROM tbl_leftmenu WHERE section=1 AND active=1");
 
while($row = mysql_fetch_array($result))
  {
	  
	  
	  echo '<a href="'.$site.$row['linkto'].'" target="'.$row['linkto_target'].'">'.$row['text'].'</a>'; //ie syntax issue here???
  }
  
 echo '</div>'; //end of section 1
 
 echo '<div id="lefttopheader">Section 2</div>';
 echo '<div class="menu">';
 
 $result = mysql_query("SELECT * FROM tbl_leftmenu WHERE section=2 AND active=1");
 
 while($row = mysql_fetch_array($result))
  {
	  
	  
	  echo '<a href="'.$site.$row['linkto'].'" target="'.$row['linkto_target'].'">'.$row['text'].'</a>';
  }
  
  echo '</div>'; //end of section 2
 
 ?>

Open in new window

ST3VOAsked:
Who is Participating?
 
joep1978Commented:
Please could you also post the HTML output of this script - it sounds like a HTML or CSS issue mainly
0
 
ST3VOAuthor Commented:
This one works perfectly on Internet explorer and it does the same

See attached:
<div id="rightb" style="float:left">
	<div id="lefttopheader">section 1</div>
              <div class="menu">
                  
                  <?php
                    {
                  echo '<a href="'.$site.'">Home</a>';
			      echo '<a href="'.$site.'page1.php">link 1</a>';
                  echo '<a href="'.$site.'page2.php">link2</a>';
                  echo '<a href="'.$site.'page3.php">link 3</a>';
				  
				  
                  echo '<a href="'.$site.'page4.php">link 4</a>';
				  echo '<a href="'.$site.'page5.php">link 5</a>';
                  echo '<a href="'.$site.'page6.php">link 6</a>';
                  echo '<a href="'.$site.'page7">link 7</a>';
					}
					?>
                  </div>
 
              <div id="lefttopheader">section 2</div>
              <div class="menu">
                  
                  <?php
				     {
                  
                  echo '<a href="'.$site.'page1.php">link 1</a>';
                  echo '<a href="'.$site.'page2.php">link 2</a>';
 
                  echo '<a href="'.$site.'page3.php">link 3</a>';
                  echo '<a href="'.$site.'page4.php">link 4</a>';
                  echo '<a href="'.$site.'page5.php">link 5</a>';
                 
					 }
					 ?>
</div>

Open in new window

0
 
joep1978Commented:
Please could you post the HTML output? (No PHP code please!)
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
pallavanjCommented:
you told its on working with IE alone.. So definetly there would not be a problem in the PHP script,

Definetly it would be  a CSS are HTML issue..

Send the html source of the page from Internet Explorer
0
 
gunny051499Commented:
I'm with you guys - this has nothing to do with PHP, it's a HTML rendering issue ;-)
0
 
wilson1000Commented:
I would like:
  1. The CSS
  2. A deeper description of what is going wrong, or
  3. A live version of the final output
As the experts above have said, this is by no means a PHP issue ST3VO - you must keep in mind that PHP is executed on the server before it reaches the view point, layouts are governed by HTML & CSS therefore we must tackle HTML & CSS to correct any layout issues.

I look forward to hearing from you
0
 
ST3VOAuthor Commented:
Thanks all...It was a DIV out of place btw :o)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.