I have a problem, how to display the image and the url stored in the destination database.
This my format code :

This code is stored in the database
like this

<a href=\"<?php echo get_settings(\'home\'); ?>\" 
style=\"border:0;\">
<img src=\"<?php echo get_bloginfo(\'template_directory\');?>/banner/728x90.JPG\"
width=\"728\" height=\"90\"/>
</a>

I called using:

stripslashes(get_option("bh"));

<a href="<?php echo get_settings('home'); ?>"  style="border:0;">
<img src="<?php echo get_bloginfo('template_directory');?>/banner/728x90.JPG" width="728" height="90"/>
</a>

$bh = html_entity_decode(get_option("bh"));

\" style=\"border:0;\"> /banner/728x90.JPG\" width=\"728\"
height=\"90\"/>

until now still can not bring the image into the browser display

So, have you tried the link formed by get_bloginfo('template_directory') and /banner/728x90.JPG? Do you get relative or absolute path?

If this code you used is for a wordpress theme the best idea is use a plgin.

<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" />

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.