Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2011, 23:34
Felipe_01
 
Fecha de Ingreso: septiembre-2008
Mensajes: 11
Antigüedad: 15 años, 7 meses
Puntos: 0
Exclamación Tablesorter no funciona

Hola a todos.
Al probar table sorter por si solo si funciona, pero al adaptarlo a mis necesidades deja de funcionar, porfavor estoy aprendiendo y necesito un poco de ayuda
Para ser mas especifico, al sacar la etiqueta </table> la busqueda se muestra sin problemas en una tabla pero no funciona el tablesorter, al poner la etiqueta, la busqueda se muestra pero no en la tabla sino que como datos desordenados y juntos
Código HTML:
Ver original
  1. <script src="/p2/js/jquery-1.7.js" type="text/javascript"></script>
  2. <script src="/p2/js/jquery.tablesorter.min.js" type="text/javascript"></script>
  3. $(document).ready(function()
  4.     {
  5.         $("#myTable").tablesorter();
  6.     }
  7. );
  8. </script>
  9. <link href="styles.css" rel="stylesheet" type="text/css" />
  10. <?
  11. include("conexion.php");
  12. $consulta="SELECT nombre, id_plan, carrera FROM alumno WHERE nombre LIKE '%%felipe%%'";
  13. $resultado = mysql_query($consulta,$link);
  14. if ($row = mysql_fetch_array($resultado)){
  15.     ?>
  16. </head>
  17. <h3>TableSorter 2.0 Demo
  18. </h3>
  19. <table id="myTable">
  20. <tr>
  21.     <th>Last Name</th>
  22.     <th>First Name</th>
  23.     <th>Email</th>
  24.   </tr>
  25. </thead>
  26. <?php
  27. do {
  28. ?>
  29. <td><?php echo $row[0];?></td>
  30. <td><?php echo $row[1];?></td>
  31. <td><?php echo $row[2];?></td>
  32. </tbody>
  33. </table>
  34. <?php
  35. } while ($row = mysql_fetch_row($resultado));
  36. }/*else {
  37. echo "La busqueda no arrojo resultados";}*/
  38. mysql_close($link);
  39. ?>
  40. </body>
  41. </html>

De antemano muchas gracias por su ayuda :)
saludos

Última edición por Felipe_01; 27/11/2011 a las 23:35 Razón: cambio de higlight