Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html lang="pl">
- <head>
- <meta charset="utf8">
- <title>bruh</title>
- <meta http-equiv="X-Ua-Compatible" content="IE=edge">
- <link rel="sylesheet" href="main.css">
- </head>
- <body>
- <?php
- require_once "dbconnect.php";
- $conn = new mysqli($host, $user, $pass, $db);
- $conn->set_charset("utf8");
- $x = "SELECT id, nazwa FROM klasa";
- $wynik = $conn->query($x);
- $ile = $wynik->num_rows;
- echo $ile;
- ?>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement