Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* *
- * Author: @Leandro Martins
- * Version: 0.1
- * */
- require_once dirname(__FILE__) . '/ControleLogin.php';
- ?>
- <!DOCTYPE html>
- <html lang="pt-br">
- <meta charset="utf-8">
- <head>
- </head>
- <body>
- <form name= "form2" method="get" action="listar.php">
- <table>
- <tr>
- <td>Nome do Item</td>
- </tr>
- <tr>
- <td method="get">
- <?php
- $logado = usuarioLogado();
- if(!$logado){
- usuarioResetar();
- }else{
- $result = mysqli_query($con, "SELECT * FROM item");
- echo ("<table>");
- while ($row = mysqli_fetch_array($result, MYSQLI_BOTH)) {
- //echo ("$row");
- echo ("<tr>");
- $tamanho = mysqli_affected_rows($con);
- //
- for ($contador = 0; $tamanho >= $contador; $contador++) {
- echo ("<td>");
- echo $row["$contador"];
- echo ("</td>");
- }
- echo ("</tr>");
- }
- }
- ?>
- </td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement