public static function produit_admin()
 {
     $listProduit = getListProduits();
     $listPays = getPays();
     require BASE_DIR . '/views/produit_admin.phtml';
 }
Example #2
0
<?php

require 'functions.php';
// nom des continents
$Continent_names = getContinent($pdo);
$strconnexion = 'mysql:host=localhost;dbname=world;charset=utf8';
$pdo = new PDO($strconnexion, 'root', 'webforce3');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$liste_pays = getPays($pdo);
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>stat of world</title>

	<link rel="stylesheet" href="style.css">

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
	<script src="pigeons.js" type="text/javascript" charset="utf-8" async defer></script>
</head>
<body>
	<main>
		<!--monde-->
		<div class="monde">
			<h1>Monde</h1> 
		</div>
		<!--les deux select -->
		<form action="index.php" method="get" accept-charset="utf-8">
			<select class="continent" name="continent">