To znowu ja i znowu ten sam kawalek kodu

Zamieszczam caly kod pliku userProfile.php zeby bylo wiadomo o co chodzi:
<?php /* READ COOKIE */ $user = $HTTP_COOKIE_VARS["user"]; /* VARIABLES */ $loginreq = ""; $content1 = ""; $content2 = ""; $thumbnailx = 150; $thumbnaily = 113; /* QUARIES */ include ("inc/sqlConnect.php"); $query = "SELECT * FROM artist WHERE artist_email = '$user'"; $userid = $data['artist_id']; $picquery = "SELECT * FROM pictures WHERE picture_artistid = '$userid'"; /* FUNCTIONS */ if ($user == "") { $loginreq = include("login.php"); } else { /* CONTENT VARIABLES */ $content1 = "<img src=\"avatars/".$data['artist_avatarname']."\" border=\"0\" /> <b>".$data['artist_name']." ".$data['artist_surname']."</b>" ."<br/><br/>".$data['artist_description'].""; { resizePicture("pictures/".$picdata['picture_filename']."", $thumbnailx, $thumbnaily); $content2 .= $new_picture; } }; /* CREATE THUMBNAIL FUNCTION */ function resizePicture($picture, $expwidth, $expheight) { $xscale=$width/$expwidth; $yscale=$height/$expheight; if ($yscale>$xscale){ } else { } $new_picture = imagecreatetruecolor($new_width, $new_height); $temporary_picture = imagecreatefromjpeg ($picture); imagecopyresampled($new_picture, $temporary_picture, 0, 0, 0, 0, $new_width, $new_height, $width, $height); return $new_picture; }; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <? ?> </body> </html>