Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(funtion(){
- <?php
- $servername = "";
- $username = "";
- $password = "";
- $connection = new mysqli($servername, $username, $password);
- if ($connection->connect_error)
- die("Connection failed: ".$connection->connect_error);
- $sql = "SELECT nazwa from artysci";
- $result = $connection->query($sql);
- echo(
- "<script>".
- "var wykonawcy = JSON.parse(".print_r($result).");"
- "".
- "</script>";
- );
- ?>
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement