i have this piece of code.
What it does is it shows the supplier name via email. The problem is that if the supplier name is empty as some dont need it, i get an error which redirects me to this piece of code.
Is there a way for me to say that if the suppliername is empty, to show as none?? or as a blank space?
<?php
$array1supplier = get_post_meta($productId, 'fancyincarray', true);
echo $array1supplier['supplier'];
?>
Aucun commentaire:
Enregistrer un commentaire