get_results("SELECT * FROM " . $wpdb->prefix . "asgallphotos WHERE is_delete=0 ORDER BY asgallPhoto_id DESC LIMIT 0,$queue"); $p = 1; foreach($res as $results) { $phtsrc[$p]['asgallPhoto_image'] = $results->asgallPhoto_image; $phtsrc[$p]['asgallPhoto_id'] = $results->asgallPhoto_id; $phtsrc[$p]['asgallPhoto_name'] = $results->asgallPhoto_name; $phtsrc[$p]['asgallPhoto_desc'] = $results->asgallPhoto_desc; $p++; } $album .= "