Kiedys mialme ten problem i jakos go rozwiazalem pamietam ale nie moge zkojazyc co zrobilem, IE tylko zle odczytuje to jakos i prawie momentalnie wyswietla ze strona nie moze zostac znaleziona, FF i opera odczytuja to i to dla nich istnieje

Ponizej jest kod ktory uzywam do edycji , moze przy okazji ktos podpowie mi co gdzie moglem zrobic lepiej , smile.gif chetnie sie naucze przy okazji czegos nowego napewno wiedza w pole nie pojdzie

a tymczasem to jest ponizszy kod ktory uzywam akurat do tego specyficznego pliku edit.php

  1. <?php
  2.  
  3. if (!isset($_SESSION['db_is_logged_in']) || $_SESSION['db_is_logged_in'] !== true) {
  4. // not logged in, move to login page
  5. header('Location: ../login_go.php');
  6. }
  7. include('header.php');
  8. include('../top.php'); 
  9. $id=$_GET['id'];
  10. include("../../../config.inc.php");
  11. mysql_connect($host,$user,$password);
  12. @mysql_select_db($database) or die ("Unable to select database");
  13. $query="SELECT * FROM suz_links WHERE id='$id'";
  14. $result=mysql_query($query);
  15. $num=mysql_num_rows($result);
  16. $i=0;
  17. while ($i < $num) {
  18. $id=mysql_result($result,$i,"id");
  19. $link=mysql_result($result,$i,"link");
  20. $string=mysql_result($result,$i,"string");
  21. $sorting=mysql_result($result,$i,"sorting");
  22. $place=mysql_result($result,$i,"place");
  23.  
  24. ?>
  25.  
  26. <form action="update.php" method="post">
  27. <input type="hidden" name="up_id" value="<? echo "$id"; ?>" />
  28. <table width="95%" border="0">
  29. <tr>
  30. <td><div id="panel" align="right">link:</div></td>
  31. <td><input name="up_link" type="text" size="50" maxlength="50" class="box" value="<? echo "$link"; ?>" /> </td>
  32. </tr>
  33. <tr>
  34. <td>&nbsp;</td>
  35. <td>
  36. <?
  37. if($place=='home_page')
  38. {
  39. $a='selected="selected"';
  40. }
  41. elseif($place=='image-gallery/index.php?page=list-image&album=1')
  42. {
  43. $b='selected="selected"';
  44. }
  45. elseif($place=='monotypes')
  46. {
  47. $c='selected="selected"';
  48. }
  49. elseif($place=='archive')
  50. {
  51. $d='selected="selected"';
  52. }
  53. elseif($place=='biography')
  54. {
  55. $e='selected="selected"';
  56. }
  57. elseif($place=='contact')
  58. {
  59. $f='selected="selected"';
  60. }
  61. ?>
  62. <select name="up_place" >
  63. <option value="index.php" <? echo "$a"; ?> >home page</option>
  64. <option value="image-gallery/index.php?page=list-image&album=1" <? echo "$b"; ?> >paintings</option>
  65. <option value="image-gallery/index.php?page=list-image&album=2" <? echo "$c"; ?> >monotypes</option>
  66. <option value="image-gallery/index.php?page=list-image&album=3" <? echo "$d"; ?> >archive</option>
  67. <option value="index.php?location=biography" <? echo "$e"; ?> >biography</option>
  68. <option value="index.php?location=contact" <? echo "$f"; ?> >contact</option>
  69.  
  70. </select></td>
  71. </tr>
  72. <tr>
  73. <td>&nbsp;</td>
  74. <td>
  75. <?
  76. if($sorting=='1')
  77. {
  78. $a='selected="selected"';
  79. }
  80. elseif($sorting=='2')
  81. {
  82. $b='selected="selected"';
  83. }
  84. elseif($sorting=='3')
  85. {
  86. $c='selected="selected"';
  87. }
  88. elseif($sorting=='4')
  89. {
  90. $d='selected="selected"';
  91. }
  92. elseif($sorting=='5')
  93. {
  94. $e='selected="selected"';
  95. }
  96. elseif($sorting=='6')
  97. {
  98. $f='selected="selected"';
  99. }
  100. elseif($sorting=='8')
  101. {
  102. $g='selected="selected"';
  103. }
  104. elseif($sorting=='9')
  105. {
  106. $h='selected="selected"';
  107. }
  108. ?>
  109. <select name="up_sorting" >
  110. <option value="1" <? echo "$a"; ?> >1</option>
  111. <option value="2" <? echo "$b"; ?> >2</option>
  112. <option value="3" <? echo "$c"; ?> >3</option>
  113. <option value="4" <? echo "$d"; ?> >4</option>
  114. <option value="5" <? echo "$e"; ?> >5</option>
  115. <option value="6" <? echo "$f"; ?> >6</option>
  116. <option value="7" <? echo "$g"; ?> >7</option>
  117. <option value="8" <? echo "$h"; ?> >8</option>
  118. </select></td>
  119. </tr>
  120. <tr>
  121. <td>&nbsp;</td>
  122. <td><div id="panelcont">
  123. <?
  124. if($string=='1')
  125. {
  126. $string='selected="selected"';
  127. }
  128. else{
  129. $string='';
  130. }
  131. ?>
  132. <select name="up_string" >";
  133. <option value="0" >No</option>";
  134. <option value="1" <? echo "$string"; ?> >Yes</option>";
  135. </select> Select Yes or No to make this record visable on main website.</div><br /></td>
  136. </tr>
  137. <tr>
  138. <td >&nbsp;</td>
  139. <td><input name="Update" type="submit" class="style1" id="Submit" /></td>
  140. </tr>
  141. </table>
  142. </form>
  143. <?
  144. $i++;
  145. }
  146. include('bottom.php');
  147. ?>