Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "root";
- $password = "";
- $hostname = "localhost";
- $db = 'db529197';
- //connection to the database
- $dbhandle = mysqli_connect($hostname, $username, $password,$db)
- or die("Unable to connect to MySQL");
- //select a database to work with
- //execute the SQL query and return records
- $result = mysqli_query($dbhandle,"SELECT * FROM eventos WHERE id (1)");
- $row = mysqli_fetch_array($result)
- ?>
- <script>
- let fecha = <?php $row["fecha"] ?>;
- console.log(fecha);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement