Se connecter avec
S'enregistrer | Connectez-vous

erreur php

Dernière réponse : dans Programmation

voici le code de ma page internet:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
  2. <html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>" xml:lang="en" lang="en"><head>
  3. <title>Pure CSS Scrollable Table with Fixed Header</title>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="language" content="en-us" />
  6.  
  7. <script type="text/javascript">
  8. <!--
  9. /* <a href="http://www.alistapart.com/articles/zebratables/" target="_blank">http://www.alistapart.com/articles/zebratables/</a> */
  10. function removeClassName (elem, className) {
  11. elem.className = elem.className.replace(className, "").trim();
  12. }
  13.  
  14. function addCSSClass (elem, className) {
  15. removeClassName (elem, className);
  16. elem.className = (elem.className + " " + className).trim();
  17. }
  18.  
  19. String.prototype.trim = function() {
  20. return this.replace( /^\s+|\s+$/, "" );
  21. }
  22.  
  23. function stripedTable() {
  24. if (document.getElementById && document.getElementsByTagName) {
  25. var allTables = document.getElementsByTagName('table');
  26. if (!allTables) { return; }
  27.  
  28. for (var i = 0; i < allTables.length; i++) {
  29. if (allTables[i].className.match(/[\w\s ]*scrollTable[\w\s ]*/)) {
  30. var trs = allTables[i].getElementsByTagName("tr");
  31. for (var j = 0; j < trs.length; j++) {
  32. removeClassName(trs[j], 'alternateRow');
  33. addCSSClass(trs[j], 'normalRow');
  34. }
  35. for (var k = 0; k < trs.length; k += 2) {
  36. removeClassName(trs[k], 'normalRow');
  37. addCSSClass(trs[k], 'alternateRow');
  38. }
  39. }
  40. }
  41. }
  42. }
  43.  
  44. window.onload = function() { stripedTable(); }
  45. -->
  46. </script>
  47. <style type="text/css">
  48. /* define height and width of scrollable area. Add 16px to width for scrollbar */
  49. div.tableContainer {
  50. clear: both;
  51. border: 1px solid #963;
  52. height: 285px;
  53. overflow: auto;
  54. width: 756px
  55. }
  56.  
  57. /* Reset overflow value to hidden for all non-IE browsers. */
  58. html>body div.tableContainer {
  59. overflow: hidden;
  60. width: 756px
  61. }
  62.  
  63. /* define width of table. IE browsers only */
  64. div.tableContainer table {
  65. float: left;
  66. width: 740px
  67. }
  68.  
  69. /* define width of table. Add 16px to width for scrollbar. */
  70. /* All other non-IE browsers. */
  71. html>body div.tableContainer table {
  72. width: 350px
  73. }
  74.  
  75. /* set table header to a fixed position. WinIE 6.x only */
  76. /* In WinIE 6.x, any element with a position property set to relative and is a child of */
  77. /* an element that has an overflow property set, the relative value translates into fixed. */
  78. /* Ex: parent element DIV with a class of tableContainer has an overflow property set to auto */
  79. thead.fixedHeader tr {
  80. position: relative
  81. }
  82.  
  83. /* set THEAD element to have block level attributes. All other non-IE browsers */
  84. /* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
  85. html>body thead.fixedHeader tr {
  86. display: block
  87. }
  88.  
  89. /* make the TH elements pretty */
  90. thead.fixedHeader th {
  91. background: blue;
  92. border-left: 1px solid red;
  93. border-right: 1px solid red;
  94. border-top: 1px solid red;
  95. font-weight: normal;
  96. padding: 4px 3px;
  97. text-align: left
  98. }
  99.  
  100. /* define the table content to be scrollable */
  101. /* set TBODY element to have block level attributes. All other non-IE browsers */
  102. /* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
  103. /* induced side effect is that child TDs no longer accept width: auto */
  104. html>body tbody.scrollContent {
  105. display: block;
  106. height: 262px;
  107. overflow: auto;
  108. width: 100%
  109. }
  110.  
  111. /* make TD elements pretty. Provide alternating classes for striping the table */
  112. /* <a href="http://www.alistapart.com/articles/zebratables/" target="_blank">http://www.alistapart.com/articles/zebratables/</a> */
  113. tbody.scrollContent td, tbody.scrollContent tr.normalRow td {
  114. background: black;
  115. border-bottom: none;
  116. border-left: none;
  117. border-right: 1px solid #CCC;
  118. border-top: 1px solid #DDD;
  119. padding: 2px 3px 3px 4px
  120. }
  121.  
  122. tbody.scrollContent tr.alternateRow td {
  123. background: black;
  124. border-bottom: none;
  125. border-left: none;
  126. border-right: 1px solid #CCC;
  127. border-top: 1px solid #DDD;
  128. padding: 2px 3px 3px 4px
  129. }
  130.  
  131. /* define width of TH elements: 1st, 2nd, and 3rd respectively. */
  132. /* Add 16px to last TH for scrollbar padding. All other non-IE browsers. */
  133. /* <a href="http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors" target="_blank">http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-se...</a> */
  134. html>body thead.fixedHeader th {
  135. width: 200px
  136. }
  137.  
  138. html>body thead.fixedHeader th + th {
  139. width: 240px
  140. }
  141.  
  142. html>body thead.fixedHeader th + th + th {
  143. width: 316px
  144. }
  145.  
  146. /* define width of TD elements: 1st, 2nd, and 3rd respectively. */
  147. /* All other non-IE browsers. */
  148. /* <a href="http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors" target="_blank">http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-se...</a> */
  149. html>body tbody.scrollContent td {
  150. width: 200px
  151. }
  152.  
  153. html>body tbody.scrollContent td + td {
  154. width: 240px
  155. }
  156.  
  157. html>body tbody.scrollContent td + td + td {
  158. width: 300px
  159. }
  160. -->
  161. </style>
  162. <link href="css/style.css" rel="stylesheet" type="text/css" />
  163. </head><body>
  164. <div id="tableContainer" class="tableContainer">
  165. <table border="0" cellpadding="0" cellspacing="0" width="100%" class="scrollTable">
  166. <thead class="fixedHeader">
  167. <tr>
  168. <th><center>Votre compte</center></th>
  169. </tr>
  170. </thead>
  171. <tbody class="scrollContent">
  172. <tr>
  173. <td>
  174. <?php
  175.  
  176. session_start();
  177.  
  178. include('user_verif.php');
  179.  
  180. user_verif("1", "user_login.php?action=login");
  181.  
  182. ?>
  183.  
  184. <p align="center">
  185.  
  186. <font face="Arial" size="2">
  187.  
  188. Vous êtes connect&eacute sous: <a href="mailto: <?php user('email'); ?>"><?php user('pseudo'); ?></a> en tant que <b><?php user('rang'); ?></b>
  189.  
  190. <br>
  191. <br>
  192.  
  193. Il y a <?php stats('nb', '123'); ?> membres sur le site.
  194.  
  195. <br>
  196.  
  197. </font>
  198.  
  199.  
  200. <?php
  201. ?>
  202.  
  203. <font face="Arial" size="2">
  204.  
  205. En voici la liste:
  206. <br>
  207. <br>
  208.  
  209. <?php stats('ls', '123'); ?>
  210.  
  211. </font>
  212.  
  213. <br>
  214.  
  215. <?php
  216.  
  217. ?>
  218.  
  219.  
  220. <font face="Arial" size="2">
  221.  
  222. Il y a <?php stats('nb', '3'); ?> administrateurs et <?php stats('nb', '2'); ?> mod&eacuterateurs sur le site.
  223. <br>
  224. <br>
  225.  
  226. Les <b>administrateurs</b>:
  227. <br>
  228. <font color="red">
  229. <?php stats('ls', '3'); ?>
  230. </font>
  231.  
  232. <br>
  233. <br>
  234.  
  235. Les <b>mod&eacuterateurs</b>:
  236. <br>
  237. <font color="blue">
  238. <?php stats('ls', '2'); ?>
  239.  
  240. <br>
  241. <br>
  242.  
  243. <?php $html='<a href="admin/index.php">Administration</a>'; affiche($html, '3'); ?><br>
  244. <?php $html='<a href="user_login.php?action=logout" target="_blank">D&eacuteconnexion</a>'; affiche($html, '123'); ?><br>
  245. <?php $html='<a href="user_update.php?action=modif">Editer votre profil</a>'; affiche($html, '123'); ?>
  246.  
  247.  
  248. </font>
  249. </font>
  250. </td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. </div>
  255. </body></html>


dans mon tableu il y a une erreur que je ne sais pas comment corriger. si vous pourrier maider. avec ma session quand elle est ouverte

Autres pages sur : erreur php

Lassé par la pub ? Créez un compte

Voici le message dereur que sa me donne:


  1. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/sites/1/ifrance.com/b/e/bedjbedard/site/mainframe.php:132) in /www/sites/1/ifrance.com/b/e/bedjbedard/site/mainframe.php on line 176
Lassé par la pub ? Créez un compte
Tom's guide dans le monde