Prénom
| Nom
| Email
| Phone
| Fonction
| Nom Club
|
[insert_php]
$servername = “localhost”;
$username = “rotaryg0_WP3X6”;
$password = “fhuDwoGPfUEyJPAqy”;
$dbname = “rotaryg0_WP3X6”;
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die(“Connection failed: ” . mysqli_connect_error());
}
$sql = “SELECT Prenom, Nom, Email, Fonction, Phone, NomClub FROM zAss30LeoHai”;
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
echo “
“.$row[‘Prenom’].” |
“.$row[‘Nom’].” |
“.$row[‘Email’].” |
“.$row[‘Phone’].” |
“.$row[‘Fonction’].” |
“.$row[‘NomClub’].” |
“;
echo “
“;
}
} else {
echo “0 results”;
}
mysqli_close($conn);
[/insert_php]