close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

img src displaying

Thread began 12/05/2018 9:42 am by birdscreen398247 | Last modified 12/05/2018 4:00 pm by birdscreen398247 | 73 views | 3 replies


img src displaying

I am trying to display an image in a table. The name of the image is stored in a table. I used MySQLIRecordset to create the recordset and a Mysqli connection.

I have the following code:
<?php require_once('../connections/siteguide2018.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
$rsCountyMap = new WA_MySQLi_RS("rsCountyMap",$siteguide2018,1);
$rsCountyMap->setQuery("SELECT * FROM counties WHERE CountyID = ?");
$rsCountyMap->bindParam("i", "".(isset($_GET['CountyID'])?$_GET['CountyID']:"") ."", "-1"); //colname
<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</title>

<table width="800" border="1" cellspacing="4" cellpadding="4">
<td><img src="<?php echo($rsCountyMap->getColumnVal('MapFileName')); ?>" alt="" name="CountyMap" width="400" id="CountyMap" /></td>
<td><?php echo($rsCountyMap->getColumnVal("MapFileName")); ?></td>

The MapFileName name displays correctly in the second row of the table, so I know the table data is being correctly retrieved, but the related image does not display in the first row.

I tried changing the path to the image (../maps/county/ and /maps/county/). The full https: path works on other (older pages) on my site.

What am I missing?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...