Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $data = $_POST['hiddenOutput'];
- // Connect to the database
- $conn = mysqli_connect("servidor", "usuario", "senha", "base_de_dados");
- // Insert data into the database
- $query = mysqli_query($conn, "INSERT INTO media (data) VALUES ('$data')");
- // check for error
- if(!$query){
- echo "Error: ". mysqli_error($conn);
- }
- // Close the connection
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement