Jump to content

Ouput image


gple

Recommended Posts

I am trying to output an image with text coming from a database"

 

$image=mysql_result($result,$i,"image");

 

trying to output it like this:

<img src=../prod_images/" . $image . " height=90>

 

problem is that some images have a space in the text like "image 1". When it is outputted onto the screen, the browser does not read anything after the space. How can I get around this?

Link to comment
https://forums.phpfreaks.com/topic/53196-ouput-image/
Share on other sites

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.