Mistři v programování na #hovnokod

$result = mysql_query("SELECT * FROM `Wallpapers` WHERE `Title` = '".$Title."'");
$row = mysql_fetch_assoc($result);
$wID=$row['ID'];
$Wallpaper1=$row['Wallpaper1'];
$Wallpaper2=$row['Wallpaper2'];
$Wallpaper3=$row['Wallpaper3'];
$Wallpaper4=$row['Wallpaper4'];
$Wallpaper5=$row['Wallpaper5'];

if ( $_SESSION['userid'] )
	{ 
	if ($Wallpaper1 != NULL) {
		$size='';
		$size=getimagesize("images/wallpapers/".$Wallpaper1);
		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=1" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
	}
	if ($Wallpaper2 != NULL) {
		$size='';
		$size=getimagesize("images/wallpapers/".$Wallpaper2);
		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=2" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
	}
	if ($Wallpaper3 != NULL) {
		$size='';
		$size=getimagesize("images/wallpapers/".$Wallpaper3);
		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=3" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
	}
	if ($Wallpaper4 != NULL) {
		$size='';
		$size=getimagesize("images/wallpapers/".$Wallpaper4);
		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=4" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
	}
	if ($Wallpaper5 != NULL) {
		$size='';
		$size=getimagesize("images/wallpapers/".$Wallpaper5);
		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=5" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
	}
	}

Anonymous,