Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/07/2012, 07:53
Grimm_06
 
Fecha de Ingreso: julio-2012
Mensajes: 4
Antigüedad: 11 años, 10 meses
Puntos: 0
Respuesta: Listado de datos en php y Mysql

Cita:
Iniciado por vicram10 Ver Mensaje
Código PHP:
Ver original
  1. <?php
  2.  
  3. include_once "conexion.php";
  4. $resultados = mysql_query("select * from libros");
  5. ?>
  6. *
  7. <h1><font color="black">Libros para el alumno *Vol I</font><h1>
  8. * * * * <table class="table2">
  9. * * <thead>
  10. * * * * <tr>
  11. * * * * * * <th></th>
  12. * * * * * * <th scope="col" abbr="Starter">Espa&ntilde;ol</th>
  13. * * * * </tr>
  14. * * </thead>
  15. * * <tfoot>
  16. * * * * <tr>
  17. * * * * * * <th scope="row"></th>
  18. * * * * </tr>
  19. * * </tfoot>
  20. * * <tbody>
  21. * * * * <tr>
  22. * * * * <th scope="row"></th>
  23. <?php
  24. while($row=mysql_fetch_assoc($resultados))
  25. {
  26.      echo '<td><a href="Primero/Volumen/',$row["nombre_archivo"] ,'">', $row["materia"] ,'</a></td> ';
  27. *
  28. }
  29. ?>

Ahi deberia de funcionarte.. pero no se como se llama tu tabla ni que campos tiene por eso te deje un ejemplo de como hacer..

salu2
Compañero eres grande lo adapte a como tengo mi web y me funciono Muchas gracias aa si supieras cuanto timepo llevo atorado con eso pero en verdad muchas gracias, encerio muchisimas gracias