PHP/MySQL convert while statements to foreach
$select = array();
while($row=mysql_fetch_array($result)) {
$select[]=$row;
}
foreach ($select AS $key => $value) {
// your code
}
Related Posts
Changing MySQL default character sets (latin) to UTF-8, MySQL: what data type to use for hashed password field and what length, MySQL Data Types