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 .= "
Following are the list of images that has been uploaded
"; $album .=''; for($i=1;$i<=$queue;$i++) { $delete_phtid = $phtsrc[$i]['asgallPhoto_id']; $get_img = $phtsrc[$i]['asgallPhoto_image']; $ext = explode('.', $get_img); $img_load = $delete_phtid.'_photothumb.'.$ext[1]; $album .= "
"; $album .='
'; $album .=''; $album .='
'; // $album .='

'.$phtsrc[$i]['asgallPhoto_name'].'

'; $album .='
'; } echo $album; ?>