Posted - 07/21/2021 : 08:58:55
PHP v7.3.4 I use the following for the dynamic title in the proddetail.php page which works fine <title><?php if(!empty($pagetitle)) {print $pagetitle;} else if(!empty(productname)) {print $productname . ", " . $sectionname;} ?><?php print $TitleTag; ?></title> However, when a product and its section have been deleted, the following error message appears. <title><br /> <b>Warning</b>: Use of undefined constant productname - assumed 'productname' (this will throw an Error in a future version of PHP) in <b>[snipped]proddetail.php</b> on line <b>17</b><br /> , | [snipped]</title> The page itself is displaying the proper text, "Sorry, this product is not currently available." I am sure there is an easy fix, but I am not seeing it. Any help would be appreciated. MarshallCENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|