Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
- const HOST_NAME = '127.0.0.1';
- const DB_NAME = 'address_book';
- const LOGIN_DB = 'basart';
- const PASSWORD_DB = "megusta";
- const PORT = 3306;
- $mysqlConnection = new mysqli(HOST_NAME, LOGIN_DB, PASSWORD_DB, DB_NAME, PORT);
- $query = "SELECT * FROM `users`";
- $rs = mysqli_query($mysqlConnection , $query );
- ?>
- <form class="datalogin" action="login.php" method="post" id="datalogin">
- <fieldset>
- <legend>Все данные</legend>
- <?php
- while ($row = mysqli_fetch_assoc($rs)) {
- echo
- "<table class='tab2' border='2' bgcolor='#ff7f50' width='15%'>
- <tr style='color: chartreuse'>
- <tr>
- <td>", $row['first_name'], "</td>
- <td>", $row['surname'], "</td>
- <td >", $row['phone_number'], "</td>
- </table>";
- ?>
- <input type="checkbox" name="checkthis[]" value="<?php
- $checkname = $row['first_name'];
- $checksurname = $row['surname'];
- $checkpn = $row['phone_number'];
- ?>"> Yes <br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement