Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // koneksi
- $conn = mysqli_connect("localhost","root","","blog");
- function query($query){
- global $conn;
- $result = mysqli_query($conn, $query);
- $rows = [];
- while ( $row = mysqli_fetch_assoc($result) ) {
- $rows[] = $row;
- }
- return $rows;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement