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'); ?>
<?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
$rsCountyMap->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<table width="800" border="1" cellspacing="4" cellpadding="4">
<tr>
<td><img src="https://pabirds.org/siteguide/maps/county/<?php echo($rsCountyMap->getColumnVal('MapFileName')); ?>" alt="" name="CountyMap" width="400" id="CountyMap" /></td>
<td> </td>
</tr>
<tr>
<td><?php echo($rsCountyMap->getColumnVal("MapFileName")); ?></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
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?