This php is not working correctly on Internet Explorer

Discussion in 'PHP' started by yilanadam, Oct 23, 2009.

  1. #1
    Hello guys,

    My website's php code is working correctly with Firefox.. But I have some problems with Internet Explorer 6-7-8

    Here is how it looks with firefox (the right view)

    [​IMG]

    And Internet Explorer

    [​IMG]

    It's gives "null" is not an object error

    [​IMG]

    I mean sidebar is loading under the content.. How can I fix it.. I need your help. Here is the php code of the page

    <?include "header.php";?>
    <script type="text/javascript">
          Event.observe(window, 'load', oyal, false);
          var dizi = new Array();
          function oyal() {
     $('oylama').innerHTML = 'Oy alınıyor ...';
              var sc = 'id=<?php echo $id; ?>';
              var nesne = new Ajax.Updater('oylama', '/oyal.php', {method: 'post', parameters: sc});
          }
         function omo(kac) {
              for(i = 1; i <= kac; i++) {
                  dizi[i] = $('r' + i).src;
                  $('r' + i).src = '/resimler/mavi.gif';
              }
              var bos = 5 - kac;
              for(j = 1; j <= bos; j++) {
                 t = kac + j;
                  dizi[t] = $('r' + t).src;
                  $('r' + t).src = '/resimler/gri.gif';
              }
          }
          function omout() {
              for(i = 1; i <= 5; i++) {
                  $('r' + i).src = dizi[i];
              }
          }
          function oc(kac) {
              $('oylama').innerHTML = 'Oy gönderiliyor ...';
              var sc = 'id=<?php echo $id; ?>&puan=' + kac;
              var nesne = new Ajax.Request('/oyver.php', {method: 'post', parameters: sc, asynchronous: false});
              oyal();
          }
          </script>
          <style type="text/css">
          img.yildiz { cursor: pointer; }
          </style>
    
    	
    	  <table width="100" height="140" border="0">
    
            <tr align="left" valign="top">
              <td width="598">            
    		  <div class="begenilenlerdiv">
                  <div class="begenilenleryazi"><?=$title;?><a href="/<?=trle($kategori);?>.html"><?=$kategori;?></a></div>
    			
    			
                
    		
    
    			  <table width="596" height="205" border="0">
    			  
                    <tr>  
                      <td><div><object width="591" height="427">
    				  
    				  
    				   <?$sorgulu=mysql_query("SELECT * FROM videolar WHERE id='$id'"); 
    while ($yaz=mysql_fetch_array($sorgulu)) {$i++; if($i%4==1){?>
    
    <p>
    <img border="0" src="<?=$yaz[resim];?>" title="film afişini Orjinal Boyutta görmek istiyorsanız bilgisayarınıza kaydedin" width="300" height="270"></p>
    <?}else{?>
    <p>
    <img border="0" src="<?=$yaz[resim];?>" title="film afişini Orjinal Boyutta görmek istiyorsanız bilgisayarınıza kaydedin" width="300" height="270"></p>
    <?}}?>
    <div id="yenigelentut">
    
    
    
    <div id="reklami">
    <div align="right"><font face="Arial" style="float:left; font-size:10pt;"><a href="#" onclick="document.getElementById('reklami').style.display = 'none';document.getElementById('kendisi').style.display = '';">
        <font color="#FF0000">Hemen Başlat!»</font></a></font></div>
    	
    <font color="#FF0000">
    <font face="Arial" style="font-size: 9pt; font-weight: 700">Film Yükleniyor..Lütfen Beklermisiniz..<br>
    </font><img border="0" src="http://www.xxxxx.com/ajaxloader.gif" width="128" height="15"><br>
    </font>
    </div>
    <div id="kendisi" style="display:none";><?function erol($linklink) {
    $turkce = array('?playerVars=autoPlay=yes');
    $ingilizce = array(' ');
    $linklink = str_replace($turkce,$ingilizce,$linklink);
    return $linklink;
    }
    echo erol($embed);?>
    	
    </div>
    					</div></td>
                    </tr>
                  </table>
                  <div class="kacbilet">
    
                    <table width="596" border="0">
                      <tr>
                        <td align="left">Bu film toplam <strong><?=$hit;?></strong> bilet satmış </td>
                        <td align="right"><div id="oylama"></div> </td>
                      </tr>
                    </table>
                  </div>
    			  <div class="filmaciklama">
    			  
    			    <table width="575" border="0">
                      <tr>
    				  <a href="http://www.google.com.tr/search?hl=tr&q=<?=trle($kategori);?>+film+izle&btnG=Ara&meta=" target="_blank">
    <img src="http://www.sadsdasada.com/filmizle.jpg"></a>
                        <td width="68" align="left" valign="top"><strong>Filmin adı : </strong></td>
                        <td width="496" align="left" valign="top"><?=$title;?></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>Açıklama : </strong></td>
                        <td align="left" valign="top"><?=$mesaj;?> </td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>Eklenme : </strong></td>
                        <td align="left" valign="top"><?=$tarih;?></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>İzlenme : </strong></td>
                        <td align="left" valign="top"><?=$hit;?> kez izlenmiÅŸ</td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>Kategori : </strong></td>
                        <td align="left" valign="top"><a href="<?=trle($kategori);?>.html"><?=$kategori;?></a></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>Oy : </strong></td>
                        <td align="left" valign="top"><?=$oy;?></td>
                      </tr>
                      <tr>
                        <td align="left" valign="top"><strong>Etiketler : </strong></td>
                        <td align="left" valign="top">
    					<?$tamamen=explode(",",$etiket);
    			  $top=count($tamamen);
    			  for ($i=0;$i<$top;$i++){ if (trim($tamamen[$i])!=" " and trim($tamamen[$i])!="-" and $i!=$top-1 ){
    			  ?>
    			  <a href="/etiket/<?=trle(trim($tamamen[$i]));?>"><?=trim($tamamen[$i]);?></a>&nbsp;,&nbsp;
    			  <?} if (trim($tamamen[$i])!=" " and trim($tamamen[$i])!="-" and $i==$top-1){?>
    			  <a href="/etiket/<?=trle(trim($tamamen[$i]));?>"><?=trim($tamamen[$i]);?></a>
    			  <?}}
    			  ?> 
    
    
    </td>
                      </tr>
                    </table>
    			  </div>
    			  <div class="yorumlartumu">
    			  <div class="yorumlarbaslik">Bu film hakkında yapılan dedikodular<br>
    			    <br>
    			  </div>
    			  <?
    			$topoy=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM yorumlar where kid='$id' and onay='1'")); 
    $sayfa=$_GET[sayfa];
    
      $sayi=$topoy['0']/7;
      if($topoy['0']%7!=0){$sayi++;}
      if($sayfa==""){$sayfa=1;}
      $sayfa=$sayfa-1;
      $nerden=$sayfa*7;
      $gram=mysql_query("select * from yorumlar where kid='$id' and onay='1' limit $nerden , 7");
    			
    			
    	
    			   while ($dondum=mysql_fetch_array($gram)){?>
    			  
    			  <div class="yorumcek">
    			    <table width="584" border="0">
                      <tr>
                        <td><span class="style1"><?=$dondum[isim];?></span> demiÅŸ ki; </td>
                        </tr>
                      <tr>
                        <td><?=$dondum[yorum];?> </td>
                        </tr>
                    </table>
    			  </div>
    			  <?}if($sayi>1.99){for ($i=1;$i<=$sayi;$i++){?>
    		<a href="/<?=$id;?>/<?=trle($title);?>.html&sayfa=<?=$i;?>"><?=$i;?></a>&nbsp;&nbsp;<?if($i%20==0){echo"<br>";}}}?>
    
    			  		  <?if(! $_POST){?>
    			  
    			  
    			  <table width="595" border="0">
                    <tr>
                      <td class="kategoribaslik">Film hakkında dedikodu yapın </td>
                      </tr>
                    <tr>
                      <td><form name="garip" method="post" action="">
                        <table width="300" border="0" cellpadding="5">
                          <tr>
                            <td width="80"><span class="style8">Adın : </span></td>
                            <td width="498"><input name="isim" type="text" class="yorumtextbox"></td>
                          </tr>
                          <tr>
                            <td><span class="style8">Yorum : </span></td>
                            <td><textarea name="yorum" class="yorumtextbox"></textarea></td>
                          </tr>
                          <tr>
                            <td><input type="hidden" name="kid" value="<?=$id;?>"></td>
                            <td align="right"><input name="Submit2" type="submit" class="yorumbuton"  value="Tamam"></td>
                          </tr>
                        </table>
                      </form></td>
                      </tr>
                  </table></div><?}else if($_POST){
    			
     $isim=trim(strip_tags($_POST[isim]));
     $yorum=trim(strip_tags($_POST[yorum]));
     $kid=trim(strip_tags($_POST[kid]));
    
    				if ($isim!="" and $yorum!="" and $kid!="" and $_SESSION["cift"]!=$kid){
    				  $tarih=date('d.m.Y '); //Çıktısı: 01.01.2005 18:30:00
    				   $_SESSION["cift"]=$kid;
    				  $ekle=mysql_query("INSERT INTO yorumlar(isim,yorum,tarih,kid) values ('$isim','$yorum','$tarih','$kid')")or die(mysql_error());
    				echo "<center>Yorumunuz yönetici onayından sonra yayınlanacaktır.</center>";
    			 
    			  }}?>
    			  </div>
              </div>
    		   </td>
    	  <?include "sidebar.php";?>
    
    Code (markup):
     
    yilanadam, Oct 23, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    the problem seems to be in html - css - javascript. In short in design. It does not seem compatible with IE. PHP has no relation with browser since scripts are executed on server.
     
    mastermunj, Oct 23, 2009 IP
  3. Om ji Kesharwani

    Om ji Kesharwani Peon

    Messages:
    211
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you should check your css file or check whether all the divs are at accurate position.Beacause php is a server side language and if it works well with mozilla then it will work with explorer too.
     
    Om ji Kesharwani, Oct 23, 2009 IP
  4. yilanadam

    yilanadam Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can be deleted
     
    Last edited: Oct 23, 2009
    yilanadam, Oct 23, 2009 IP
  5. adstiger

    adstiger Peon

    Messages:
    409
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    php is server side scripting therefore its not dependent upon the browser. It must be javascript or CSS that is creating problems.
     
    adstiger, Oct 23, 2009 IP
  6. LOD

    LOD Member

    Messages:
    319
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #6
    dude check ur css... php doesnt vary with the browser.. its friggin CSS that does...
     
    LOD, Oct 23, 2009 IP