Advertisement
basart1

Untitled

Mar 29th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
  2. const HOST_NAME = '127.0.0.1';
  3. const DB_NAME = 'address_book';
  4. const LOGIN_DB = 'basart';
  5. const PASSWORD_DB = "megusta";
  6. const PORT = 3306;
  7. $mysqlConnection = new mysqli(HOST_NAME, LOGIN_DB, PASSWORD_DB, DB_NAME, PORT);
  8. $query = "SELECT * FROM `users`";
  9. $rs = mysqli_query($mysqlConnection , $query );
  10. ?>
  11. <form class="datalogin" action="login.php" method="post" id="datalogin">
  12. <fieldset>
  13.     <legend>Все данные</legend>
  14. <?php
  15. while ($row = mysqli_fetch_assoc($rs)) {
  16.     echo
  17.     "<table class='tab2' border='2'  bgcolor='#ff7f50' width='15%'>
  18.    <tr  style='color: chartreuse'>
  19.    <tr>
  20.    <td>", $row['first_name'], "</td>
  21.    <td>", $row['surname'], "</td>
  22.    <td >", $row['phone_number'], "</td>
  23.    </table>";
  24.     ?>
  25.     <input type="checkbox" name="checkthis[]" value="<?php
  26.     $checkname = $row['first_name'];
  27.     $checksurname = $row['surname'];
  28.     $checkpn = $row['phone_number'];
  29. ?>"> Yes <br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement