Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('conexion.php');
- $sql="SELECT * FROM tics";
- $resul=$link->query($sql);
- ?>
- <?php while($fila=$resul->fetch_assoc()):
- $t=$fila['tit'];
- $c=$fila['con'];
- ?>
- <?php
- $contenido = "<html> <body class'hola5'> <h1> $t </h1> <p> $c
- </p> </body> </html>";
- $fp = fopen('new.php', 'w');
- fwrite($fp, $contenido);
- //parte que intente crear una nueva pagina, funciona solo con
- el ultimo registro //
- ?>
- //parte html que si me funciona generando cada registro en su
- respectiva etiqueta//
- <div class="card-body">
- <a href="new.php"> <h2 class="card-title"> <?= $t;?> </h2> <p>
- <?= $c; ?> </p> </a>
- <div class="card-footer text-muted">
- Posted on January 1, 2017 by
- <a href="#">Start Bootstrap</a>
- </div>
- </div>
- <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement