Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin testing<?php
- echo "siap???";
- error_reporting(E_ALL);
- $db = new mysqli("localhost","root","toor","db");
- if (mysqli_connect_errno()) {
- printf("Connect failed: %s\n", mysqli_connect_error());
- exit();
- }
- $query = "select * from tbl_users";
- $result = $db->query($query);
- echo $result->username;
Advertisement
Add Comment
Please, Sign In to add comment