The image will not display that I am trying to show with the following line of code: <img src=images/".$droprow["name"].".jpg> Code (markup): The image is in the proper location and if I replace this code with a static code such as: <img src="images/avatar.jpg"> Code (markup): It works fine .... it seems I need the " around the image src but am not sure how to do this any help would be great thank you.
try to trim the space by using trim function from the variable $droprow["name"] or try <? echo $droprow["name"]; echo "<img src=images/".$droprow["name"].".jpg>"; ?> right click the image and see what link it is showing even though it does not display image right click the cross You will come to know what it is passing to page Regards Alex
Okay trimming spaces changes the image name so what I really need to know I guess is how to add a " where there needs to be one within an echo: echo "display this image <img src="black ruler.jpg" <br /> Black Ruler"; EDIT: the above code isn't what i'm actually using its just easier to explain with something short.
have u tried this <? echo $droprow["name"]; echo "<img src=images/".$droprow["name"].".jpg>"; ?> Please write the output of above lines Regards Alex
' worked great thank you kmap your code worked great alone but within the function it was stopping the code from running at the echo .... an echo wasent actually used it was done within a variable that displayed within another display. Thank you both for your help