php foreach mysql result

Solutions on MaxInterview for php foreach mysql result by the best coders in the world

showing results for - "php foreach mysql result"
Ben
29 Mar 2019
1$result_select = mysqli_query($cnx,$query_select);
2$rows = array();
3while($row = mysqli_fetch_array($cnx,$result_select))
4    $rows[] = $row;
5foreach($rows as $row){ 
6    $ename = stripslashes($row['name']);
7    $eemail = stripcslashes($row['email']);
8    $epost = stripslashes($row['post']);
9    $eid = $row['id'];
10}