connect_error) {
die(« Connection failed: » . $conn->connect_error);
}
$sql = « SELECT * FROM ldk_filiere ORDER by id_fil ASC »;
$result = $conn->query($sql);
if ($result->num_rows > 0)
{ // output data of each row
while($row = $result->fetch_assoc())
{
$type = $row[« special_fil »];
switch ($type)
{
case Fil: $ligne= »
« .$row[« nom_fil »]. » | |
« .$row[« nom_fil »]. » |