Jump to content

How to display image from server, path saved in database


Irvine263

Recommended Posts

Dear Friends

Its my pleasure to be on this platform, my greetings to you all. Am facing some challenges with my script. Am currently using dreamweaver and i don't have any problem by using dreamweaver to display image saved in a folder and the path in database. The problem that i have is the script to display data vertically, when using dreamweaver. So here my script to display data vertically, the problem is that it only display image path name. I have tried <img src="images/$row_recordset1['image']" >; but i failed and also played around the code.

I have indicated where i have problem with NB

To all Gurus, Captains, God Fathers, Masterminds, bla bla bla bla bla

Please help me

Thanx

php f.htm

Link to comment
Share on other sites

thanx foxy, what about adding a link. I have tried to place dreamweaver code and its not working. so help me on this one please

echo"<font face= "calibri" size="4">";
NB------------------------echo "<a href="$row_recordset1['product']"> "$row_recordset1['product'] " </a>'; -------------------------
echo "</font>";
echo "<br/>";
dreamweaver code
<img src="logo/<?php echo $row_recordset1['photo']; ?>" alt="<?php echo $row_recordset1['companyname']; ?>" width="100" height="60" />
this code works well when am using dreamweaver, but with the code above, it's not working
Link to comment
Share on other sites

You have mismatched quotes again, which should be clear in a color coded editor

echo "<a href="$row_recordset1['product']"> "$row_recordset1['product'] " </a>';

Here's the PHP manual page on strings, how to print then, put variables in them and how different delimiters work. Please read it carefully.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...