From my code below, i am unsure on how to create in else statement that states if data comes with a Recipe embedded in the post, button will be displayed which allow user to click. However, if data does not come with a Recipe, button will be hidden. I unsure on how to create from here.
<div class="articlepreview">
<button type="submit" value="Recipe" class="buttonlink" onclick="parent.location='<?php echo 'Recipe-view?id=' . $eachData["RecipeID"]; ?>'">Recipe</button>
</div>
Aucun commentaire:
Enregistrer un commentaire