Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "123456";
- $db = new mysqli($servername, $username, $password);
- if($db->connect_errno == 0)
- {
- echo("conn succes");
- }
- $res = $db -> query('select * from potluck')
- $rows = mysqli_fetch_assoc($res);
- if ($rows != 0)
- {
- echo("found smth !!")
- }
- $res -> free();
- $db -> close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement