db->query($sqlApp)->result(); foreach($resultaApp as $therow) : $appName = $therow->app_name; $foot_name = $therow->foot_name; endforeach; ?>