Slynderdale
04-25-2002, 12:17 PM
function getpictureurl($userid) {
global $DB_site,$session;
if ($pictureinfo=$DB_site->query_first("SELECT user.pictureid NOT ISNULL(picturedata) AS hascustom
FROM user
LEFT JOIN userpicture ON userpicture.userid=user.userid
WHERE user.userid='$userid'")) {
if ($pictureinfo['hascustom']) {
return "userpicture.php?userid=$userid&dateline=$pictureinfo[dateline]";
} else {
return '';
}
}
}
global $DB_site,$session;
if ($pictureinfo=$DB_site->query_first("SELECT user.pictureid NOT ISNULL(picturedata) AS hascustom
FROM user
LEFT JOIN userpicture ON userpicture.userid=user.userid
WHERE user.userid='$userid'")) {
if ($pictureinfo['hascustom']) {
return "userpicture.php?userid=$userid&dateline=$pictureinfo[dateline]";
} else {
return '';
}
}
}