$result_select = mysqli_query($cnx,$query_select);
$rows = array();
while($row = mysqli_fetch_array($cnx,$result_select))
$rows[] = $row;
foreach($rows as $row){
$ename = stripslashes($row['name']);
$eemail = stripcslashes($row['email']);
$epost = stripslashes($row['post']);
$eid = $row['id'];
}