Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="AN.css">
- <title> Porfolio Anta NDOYE</title>
- </head>
- <body>
- <?php
- //connection à la base de données
- try{
- $bdd= new PDO('mysql:host=localhost;dbname=porfolio; charset=utf8', 'root','');
- }
- catch(Exception $e)
- {
- die('Erreur : '.$e->getMessage());
- }
- ?>
- <header>
- <!--logo-->
- <div id="logo">
- <a href="http://localhost/Mon_Site/#home"><img src="image/LOGO.png" alt="logo" title="anta ndoye" width="100" height="70"></a>
- </div>
- </header>
- <!--Home-->
- <div id="body_center">
- <img class="img_centre" src="image/LOGO.png" alt="logo" title="anta ndoye">
- <h1>ANTA NDOYE</h1>
- </div>
- </br></br></br></br></br></br>
- <!--Table de menu: Affichage des differents types de catégories depuis la base de données -->
- <table class="ma_table">
- <?php
- // recupération des doonnées
- $response = $bdd->query('SELECT * FROM categories WHERE id = id')or die(print_r($bdd->errorInfo()));;
- while ($donnees=$response->fetch()){
- $id = $donnees['id'];?>
- <tr>
- <th id="" colspan="2"><h2><?php echo'<a class="page_externe" href="experiences_projets.php? expro='.$id.'">'.$donnees['types'].'</a>';
- }?></h2> </th>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement