Jump to content

[SOLVED] only taking one word from database


brem13

Recommended Posts

hey, im calling an album name from a database and putting it in a link for a image display but if the album has more than one word in it, it doesnt get put in the link, does anyone know why?

 

$album = $qry[profalbum];
$pic = $qry[profpic];

if($pic == ""){
echo "<img src=../../../../../../../../../ques.jpg>";
}
else{
echo "<img src=".$folder."/".$album."/thumbs/".$pic.">";
}

$album is 'My Album' in the database but 'My' only shows in the link and doesnt include the rest, like it should be .../My%20Album/thumbs/pic.jpg

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.