| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- Esto es un div
- <?php
- include('db.php');
- $statement = $db->prepare("SELECT d.nombre, d.telefono, d.direccion, d.localidad, d.provincia, c.categoria
- FROM distribuidoras d
- left join categorias_distribuidoras c
- on d.categoria = c.id
- where d.categoria = 2");
- $statement->execute();
- $statement->store_result();
- $statement->bind_result($nombre, $telefono, $direccion, $localidad, $provincia, $categoria );
- //$count=$statement->num_rows;
- $html= "<h1>$categoria</h1>
- <table class='zona'>
- <thead>
- <tr>
- <th>Provincia</th>
- <th>Localidad</th>
- <th>Distribuidor</th>
- <th>Domicilio</th>
- <th>Teléfono</th>
- </tr>
- </thead>
- <tbody>";
- echo $html;
- while ( $statement->fetch() ) {
-
-
- echo "
- <tr>
- <td>$provincia</td>
- <td>$localidad</td>
- <td>$nombre</td>
- <td>$direccion</td>
- <td>$telefono</td>
- </tr>";
- }
- echo "</tbody></table>";
- ?>
- aca termina mi div
|