Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="assets/css/main.css" />
- </head>
- <body>
- <!-- Wrapper -->
- <div id="wrapper">
- <!-- Header -->
- <header id="header">
- <!--<span class="avatar">--> <img src="MYGYM.png" width=700><!--</span>-->
- </header>
- </div>
- <!-- Main -->
- <section id="main">
- <!-- Thumbnails -->
- <!-- <section class="thumbnails">
- <a href="images/fulls/01.jpg">
- <img src="images/thumbs/01.jpg" width="90" height="120" alt="" />
- </a>
- <a href="images/fulls/02.jpg">
- <img src="images/thumbs/02.jpg" width="90" height="120" alt="" />
- </a>
- <div>
- <a href="images/fulls/03.jpg">
- <img src="images/thumbs/03.jpg" width="90" height="120" alt="" />
- </a>
- <a href="images/fulls/04.jpg">
- <img src="images/thumbs/04.jpg" width="90" height="120" alt="" />
- </a>
- <a href="images/fulls/05.jpg">
- <img src="images/thumbs/05.jpg" width="90" height="120" alt="" />
- </a>
- </div>
- <div>
- <a href="images/fulls/06.jpg">
- <img src="images/thumbs/06.jpg" width="90" height="120" alt="" />
- </a>
- <a href="images/fulls/07.jpg">
- <img src="images/thumbs/07.jpg" width="90" height="120" alt="" />
- </a>
- </div>
- </section>-->
- </section>
- <?php
- $cp=$_POST["id_cliente"];
- $hostname="localhost";
- $username="root";
- $password="";
- $conn=mysql_connect(‘localhost’, ‘username’, ‘’);
- if(!$conn){
- echo"Errore durante la connessione";
- exit();
- }
- else{
- echo"Connessione a MySQl effettuata con successo";
- }
- if(!mysql_select_db("tesina",$conn){
- exit("errore nella scelta del db archivio");
- } else {
- echo "Ok, selezione effettuata"} ;
- $select="select id_cliente from cliente where id_cliente=1212";
- $risultato=mysql_query($select);
- if(!$risultato){exit("errore nella query";)}
- else{echo"ok";}
- $riga=mysql_fetch_array($risultato);
- echo $riga ;
- ?>
- <script src="assets/js/jquery.min.js"></script>
- <script src="assets/js/jquery.poptrox.min.js"></script>
- <script src="assets/js/skel.min.js"></script>
- <script src="assets/js/main.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement