Page 1 of 1

Calling img? to images_html folder

Posted: Sun Aug 26, 2007 4:04 pm
by 4Boredom
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?

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" />

just move them to a public folder on your server

Posted: Sun Aug 26, 2007 11:03 pm
by yacahuma
if the images are going to be viewed , why you dont want them in the public folder?. If there is no kind of security issues with the photos. just move them to a web accessible place. Otherwise you will have to read the images and stream them(i think)