Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php foreach mysql result

$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'];
}
 
PREVIOUS NEXT
Tagged: #php #foreach #mysql #result
ADD COMMENT
Topic
Name
6+9 =