Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Reis</title>
- <meta charset="utf-8">
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
- <style type="text/css">
- body{
- background-color: white;
- font-family:
- }
- #nav{
- opacity: .8;
- padding-top: 50px;
- }
- #nav:hover {
- opacity: 1.0;
- }
- </style>
- </head>
- <body>
- <?php
- $bd_host="localhost";
- $bd_user="root";
- $bd_password="";
- $bd_database="website";
- $ms = new mysqli($bd_host,$bd_user,$bd_password,$bd_database);
- $ms->set_charset("utf8");
- $id1=$conteudo=$titulo="";
- $id=1;
- $existe=false;
- $sql = "SELECT * FROM backoffice WHERE idconteudo=?";
- $statement = $ms->prepare($sql);
- $statement->bind_param('i',$id);
- $statement->execute();
- $statement->bind_result($id1, $conteudo, $titulo);
- if ($statement->fetch()) {
- $existe=true;
- }
- else
- $existe=false;
- $statement->close();
- echo "$conteudo";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment