2 pièce(s) jointe(s)
Affichage de ma base mysql
voici les images :
Pièce jointe 603358
Pièce jointe 603359
dans ma page html
Code:
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
Code:
self::$connection = new PDO("mysql:host=localhost;dbname=xxxx;dbName=xxx;dbUser=xxx;dbUserPassword=xxx; charset=UTF8;");
affichage
Code:
1 2 3 4 5 6 7 8 9
| $sqlCan = "SELECT DISTINCT cantons FROM membres WHERE activation = 1 ORDER BY cantons ASC";
$reponseCan = $db->query($sqlCan);
if ($reponseCan->fetch() == true){
foreach($reponseCan as $result){
if ($result['cantons'] != "")
echo "<option>" . $result['cantons']. "</option>";
}
} |