Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST)) {
- $nmaster = $_POST['master'];
- echo $nmaster;
- }
- $db_host = "localhost";
- $db_user = "art"; // Логин БД
- $db_password =""; // Пароль БД
- $dbName = "onlin";
- $link = new mysqli($db_host, $db_user, $db_password, $dbName);
- $query = "select name,time
- from zapis
- where name
- like '$nmaster' ";
- $result = mysqli_query($link,$query);
- while ($row = mysqli_fetch_assoc($result)) {
- printf ($row["name"]."</br>".$row["time"]."</br>");
- }
- mysqli_close($link);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement