Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = 'localhost';
- $user = 'root';
- $password = '';
- $db = 'Conference';
- $mysql = mysqli_connect($host,$user,$password,$db);
- if(mysqli_connect_error($mysql)){
- echo "Ошибка";
- die();
- }
- $select = "SELECT * FROM Region;";
- $res = $mysql->query($select);?>
- <html>
- <head>
- <title>Запрос А</title>
- <meta charset="UTF-8">
- </head>
- <body>
- Запрос А<br>
- <table border="1">
- <tr>
- <td><b>Код Региона</b></td>
- <td><b>Регион</b></td>
- </tr>
- <tbody>
- <?php while($row = $res ->fetch_row());?>
- <tr>
- <td><?=$row[0];?></td.
- <td><?=$row[1];?></td>
- </tr>
- <?php endwhile;?>
- </tbody>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement