\n";
for($j = 0; $j < $cols && ((($cols * ($i)) + ($j+1)) <= $num); $j++) {
$row = $wpdb->get_row($query, ARRAY_A, $j);
$id = $row['id'];
$picture_url = stripslashes($row['picture_url']);
$download_id = stripslashes($row['download_id']);
$artist_id = NULL;
$artist_name = stripslashes($row['artist_name']);
$album_name = stripslashes($row['album_name']);
$album_date = stripslashes($row['album_date']);
$artist_url = stripslashes($row['artist_url']);
$store_url = stripslashes($row['store_url']);
$free_download_enabled = $row['free_download_enabled'];
$featured = $row['featured'];
$updatedescr = stripslashes($row['updatedescr']);
$released = date("M",mktime(0,0,0,(int)substr($album_date, 5, 2), (int)substr($album_date, 8, 2), (int)substr($album_date, 0, 4))). "." .substr($album_date, 8, 2). "." .substr($album_date, 0, 4);
$discog_html .= " \n
\n
$artist_name \n
$album_name \n
 \n
Released: " .date("M",mktime(0,0,0,(int)substr($album_date, 5, 2), (int)substr($album_date, 8, 2), (int)substr($album_date, 0, 4))). "." .substr($album_date, 8, 2). "." .substr($album_date, 0, 4). " \n
\n
\n
| \n
\n
\n
\n
$updatedescr\n
\n
\n
| \n";
}
for($j; $j < $cols; $j++) {
$discog_html .= " | \n";
}
$discog_html .= "
\n";
if ($i < ($rows-1)) { $discog_html .= "