\t\t\t <!-- Bootstrap Core CSS --> \t\t\t <link href="css/bootstrap.css" rel="stylesheet"> \t\t\t <!-- Custom CSS --> \t\t\t <link href="css/mine.css" rel="stylesheet"> \t\t\t</head> \t\t\t<body> END; include 'navbar.php'; $req = find_appart_prop($_SESSION['utilisateur']); $result = odbc_exec($conn, $req); while (odbc_fetch_row($result)) { $id = odbc_result($result, 1); $photo = odbc_result($result, 2); $titre = get_description_titre($conn, $id); imprimer($conn, $id, $titre, $photo); } odbc_close($conn); function imprimer($conn, $id, $titre, $photo) { echo ' <div class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="' . $photo . '" alt=""> <div class="caption"> <h3>' . utf8_decode($titre) . '</h3> <p> '; $res = louerpar($conn, $id); $nom = odbc_result($res, 1);
<div class="col-md-9"> <div class="thumbnail"> <?php include 'requete_appart.php'; include 'connexion.php'; $loyer = get_loyer($conn, $_GET['id']); $req = get_appart($_GET['id']); $result = odbc_exec($conn, $req); while (odbc_fetch_row($result)) { $id = odbc_result($result, 1); $photo = odbc_result($result, 2); $type = odbc_result($result, 3); $idtype = odbc_result($result, 4); $titre = get_description_titre($conn, $_GET['id']); $description = get_description_total($conn, $_GET['id']); } echo ' <img class="img-responsive" src="' . $photo . '" alt=""> <div class="caption-full"> <h4 class="pull-right">' . $loyer . ' €</h4> <h4><a href="#">' . $titre . '</a> </h4> <p>' . utf8_encode($description) . '</p> <h3>' . $type . '</h3> </div> '; ?> </div>