How to Show images from database dynamically. Help

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

How to Show images from database dynamically. Help

Postby Blackhawk » 12. September 2016 19:05

Hi All,

I use to use MS Access and odbc connection, I have now moved to PHP and MySQL, and I wonder if the same functionality is still available using php?

What I am trying to do is getting my image files, to display in my dynamic table on my website. I use to do the following in Dreamweaver, with the access table:
<img src="../gallery/photos/01_06_2013_Glasgow_EI-REI.JPG" width="800" height="254" />

I use to remove "="../gallery/photos/01_06_2013_Glasgow_EI-REI.JPG" and put in the following: Recordset1['Image'] and it would display the picture in the table on my website.


I have tried the same with php in Dreamweaver and it only shows a small black box with a white cross, the code I am using is as shown:

<img src="<?php echo $row_Recordset1['Image']; ?>" width="800" height="254" /></td> is this the correct code to do this as I can't get the picture to show on my website???

Any help is much appreciated .
Blackhawk
 
Posts: 2
Joined: 09. September 2016 21:09
XAMPP version: ?
Operating System: Windows

Re: How to Show images from database dynamically. Help

Postby Nobbie » 13. September 2016 10:18

What is the contents of $row_Recordset1['Image']? How is it defined (Create Table statement), how is it filled with which value?

Same question for MS Access and Recordset['Image'], how was it defined and what does it contain, how was it filled with which value?
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04


Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 1 guest