Advertisement
ATINA

Untitled

May 26th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <link rel="stylesheet" type="text/css" href="AN.css">
  6.         <title> Porfolio Anta NDOYE</title>
  7.  
  8.     </head>
  9.  
  10.     <body>
  11.         <?php
  12.         //connection à la base de données
  13.         try{
  14.         $bdd= new PDO('mysql:host=localhost;dbname=porfolio; charset=utf8', 'root','');
  15.         }
  16.         catch(Exception $e)
  17.         {
  18.                 die('Erreur : '.$e->getMessage());
  19.         }
  20.  
  21.         ?>
  22.  
  23.  
  24.         <header>
  25.             <!--logo-->
  26.  
  27.             <div id="logo">
  28.                 <a href="http://localhost/Mon_Site/#home"><img src="image/LOGO.png" alt="logo" title="anta ndoye" width="100" height="70"></a>
  29.             </div>
  30.  
  31.         </header>
  32.  
  33.         <!--Home-->
  34.  
  35.         <div id="body_center">
  36.             <img class="img_centre" src="image/LOGO.png" alt="logo" title="anta ndoye">
  37.             <h1>ANTA NDOYE</h1>
  38.         </div>
  39.     </br></br></br></br></br></br>
  40.  
  41.         <!--Table de menu: Affichage des differents types de catégories depuis la base de données -->
  42.         <table class="ma_table">
  43.             <?php
  44.             // recupération des doonnées
  45.             $response = $bdd->query('SELECT * FROM categories WHERE id = id')or die(print_r($bdd->errorInfo()));;
  46.  
  47.             while ($donnees=$response->fetch()){
  48.             $id = $donnees['id'];?>
  49.                     <tr>
  50.                         <th id="" colspan="2"><h2><?php echo'<a class="page_externe" href="experiences_projets.php? expro='.$id.'">'.$donnees['types'].'</a>';
  51.                         }?></h2> </th>
  52.                     </tr>
  53.  
  54.         </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement