I am using the following code to add markers to a map, it works fine, but I want to add another field to my database for the marker icon so I can display a custom marker icon for each entry in the database.
Does anyone know the what I need to "echo" in order to a custom .png marker for each item as it queries the database?
<?php
$query = mysqli_query($conn, "SELECT * FROM table")or die(mysql_error());
while($row = mysqli_fetch_array($query)) {
$logo = $row['logo'];
$company = $row['company'];
$lat = $row['lat'];
$lon = $row['lon'];
$desc = $row['desc'];
echo("addMarker($lat, $lon, '<b>$logo</b><b>$company<br />$desc');\n");
}
?>