I'm having an issue with some PHP code where my page is crashing whenever i insert the following code.
Revised Code
$supp = emb_meta( "_emb_supplier" );
if ($supp == "Type1") {
echo '<a href="http://link.com/" target="_blank">Text here for Type1! product.</a>';
}
elseif ($supp == "Type2") {
echo '<a href="http://link.com/" target="_blank">Text here for Type2 product.</a>';
}
elseif ($supp == "Type3") {
echo '<a href="http://link.com/" target="_blank">Text here for Type3 product.</a>';
}
elseif ($supp == "Type4"){
echo '<a href="http://link.com/" target="_blank">Text here for Type4 product.</a>';
}
else {
echo '';
}
?>
$supp = emb_meta( "_emb_supplier" );just set$supp = "Type1";and see what happens. Maybeemb_metais unknown here