Vivres et matériel en possession
Id |
Username |
Password |
".
"EMP NAME : {$row['designationproduit']}
".
"EMP SALARY : {$row['qte']}
".
"--------------------------------
";
}
echo "Fetched data successfully\n";
mysql_close($conn);
?>
<<<<<<< HEAD
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id, username, password FROM login";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "
" . $row["id"]. " | " . $row["username"] . " | "
. $row["password"]. " |
";
}
echo "";}
else { echo "0 results"; }
$conn->close();
?>
=======
>>>>>>> 1a873eb33e390bfbb60bbe9dc7d2d10909f0e5b0