Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysqli_connect("localhost","root","","latihan");
- // Check connection
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $sql = "SELECT * FROM kriteria";
- $result = $con->query($sql);
- if ($result) {
- while ($row = $result->fetch_row()) {
- echo "Kriteria dari ".$row[0]." adalah ".$row[1]."<br>";
- }
- $result->close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement