Your IP : 3.141.198.113


Current Path : /home/lentoinv/covisclubinternational.com/
Upload File :
Current File : //home/lentoinv/covisclubinternational.com/yes.php

<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>
<table>
  <tr>
          <th></th>
    <th>First Name</th>
    <th>Last Name</th>
    <th>Email</th>
        <th>Phone</th>
            <th>Sex</th>
  </tr>
<?php
$servername = "localhost";
$username = "covimbdk_winner";
$password = "nerWinIta";
$dbname = "covimbdk_covis";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
} 
$cccc =  0;
$sql = "select distinct email from user WHERE country LIKE '%Nigeria%'";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
  // output data of each row
  while($row = $result->fetch_assoc()) {

$e= $row["email"] ;
$sql2 = "SELECT * FROM user WHERE email='$e' LIMIT 1";
$result2 = $conn->query($sql2);

if ($result2->num_rows > 0) {
  // output data of each row
  while($row2 = $result2->fetch_assoc()) {

    $f = $row2["firstname"];
     $l = $row2["lastname"];
         $p = $row2["phone"];
             $s = $row2["sex"];
  }
}
$cccc++;
?>

 <tr>
          <td><?=$cccc;?></td>
     <td><?=$f;?></td>
     <td><?=$l;?></td>
    <td><?=$row["email"];?></td>
     <td><?=$p;?></td>
  <td><?=$s;?></td>
  </tr>
<?
  }
} else {
  echo "0 results";
}
$conn->close();
?>
</table>

?>