require ("config.inc"); ?> /*** Select Plant Information ***/ if ( !preg_match('/^[A-Za-z0-9_-]{1,200}$/', $_REQUEST['name']) ) : die(header ("Location: /notfound.html")); endif; $sqlPlantResult = $pdoConnection->prepare("select * from Plants where web_url like '" . ($_REQUEST['name']) . "'"); $sqlPlantResult->execute(); $sqlPlantRowNum = $sqlPlantResult->rowCount(); $sPlantRow = $sqlPlantResult->fetch(PDO::FETCH_ASSOC); # Get image number $iImageNum = $sPlantRow['plantnumber']; $iImageNum = str_replace(".", "-", $iImageNum); # Check if image exists if ( file_exists("/home/do180/www/perennials.com/perennials/" . $iImageNum . ".jpg") ) : # Watermark src example: /watermark.php?path=perennials/1-550-480.jpg&watermark=images/watermark_heritage.png # Add watermark $sImageToShow = "/watermark.php?path=perennials/" . $iImageNum . ".jpg&watermark=images/watermark_heritage.png&xpos=.88&ypos=.95"; //if ($sPlantRow['plant_type'] == "1" || $sPlantRow['plant_type'] == "17" || $sPlantRow['plant_type'] == "33" || $sPlantRow['plant_type'] == "73" || $sPlantRow['plant_type'] == "65" || $sPlantRow['plant_type'] == "9" || $sPlantRow['plant_type'] == "129") : $sImageToShow = "/watermark.php?path=perennials/" . $iImageNum . ".jpg&watermark=images/watermark_heritage.png&xpos=.88&ypos=.95"; //elseif ($sPlantRow['plant_type'] == "3" || $sPlantRow['plant_type'] == "7" || $sPlantRow['plant_type'] == "67") : $sImageToShow = "/watermark.php?path=perennials/" . $iImageNum . ".jpg&watermark=images/watermark_jeepers.png&xpos=.99&ypos=1.0"; //elseif ($sPlantRow['plant_type'] == "5" || $sPlantRow['plant_type'] == "69" || $sPlantRow['plant_type'] == "133") : $sImageToShow = "/watermark.php?path=perennials/" . $iImageNum . ".jpg&watermark=images/watermark_rockstars.png&xpos=.99&ypos=1.0"; //else : $sImageToShow = "/perennials/" . $iImageNum . ".jpg"; endif; else : $sImageToShow = "/images/space.gif"; endif; if ($sqlPlantRowNum == 0) : die(header ("Location: /notfound.html")); endif; ?>
echo funcFitString($sPlantRow['italicname'], 63); ?>
Plant number: echo funcFitString($sPlantRow['plantnumber'], 10); ?>//print_r($sPlantRow); /*** Show Plant Type Logo ***/ $sPlantRow['planttype'] = $sPlantRow['planttype']??''; if ($sPlantRow['planttype'] == "jeepers") : echo " ";
elseif ($sPlantRow['planttype'] == "rockstars") : echo " ";
elseif ($sPlantRow['planttype'] == "hea") : echo " ";
elseif ($sPlantRow['planttype'] == "heritage") : echo " ";
endif;
?>
echo $sPlantRow['longtagdescription']; ?>
Disclaimer: This information is presented for reference only. This plant is not currently part of our Heritage Perennials lineup. "; endif; ?>
|
| All " . $sqlRelatedPlantTotalRowNum . " results here | Alphabetical list of all 4,000+ perennials here |
echo funcFitString($sPlantRow['italicname'], 63); ?>
Plant number: echo funcFitString($sPlantRow['plantnumber'], 10); ?>/*** Show Plant Type Logo ***/ if ($sPlantRow['planttype'] == "jeepers") : echo " ";
elseif ($sPlantRow['planttype'] == "rockstars") : echo " ";
elseif ($sPlantRow['planttype'] == "hea") : echo " ";
elseif ($sPlantRow['planttype'] == "heritage") : echo " ";
endif;
?>
echo $sPlantRow['longtagdescription']; ?>
Disclaimer: This information is presented for reference only. This plant is not currently part of our Heritage Perennials lineup. "; endif; ?>
|
