Calling img? to images_html folder
Posted: Sun Aug 26, 2007 4:04 pm
Ok I have a profile page http://www.whosyourcandidate.com/viewpr ... p?userid=1
I am using an older code I bought for a profile system. I have all the pictures upload into /images_html/ so that they are not in the public folder
how do I get img? to read from images_html ... or should I move images_html to public_html as a subfoler and link thru that?
I am using an older code I bought for a profile system. I have all the pictures upload into /images_html/ so that they are not in the public folder
how do I get img? to read from images_html ... or should I move images_html to public_html as a subfoler and link thru that?
Code: Select all
$display= mysql_query("SELECT * FROM `pictures` WHERE `userid`=".$profileid." AND `displayed`= '1' AND `default`='1'");
print("<a href=\"viewprofile?userid=".$profileid."&pictureid=index\">");
if(!$display) { print("<img src=\"http://whosyourcandidate.com/images/no_pic.gif\"/>"); } else {
$row = mysql_fetch_array($display);
if(!empty($row['pictureid'])){
$output.='<img src="http://whosyourcandidate.com/img?pictureid='.$row['pictureid'].'&type=m" />