if else php statements
-
We are trying to get our head around a complex problem. We are trying to write an if/else statement in PHP (we are learning).
When a logged in user posts anything, we do not want them to have the option of clicking “favorite/unfavorite” on their own posts – only “delete” is displayed.
While when the logged in user visits another users page, or reads another users posts – we want them to be able to “favorite/unfavorite” but the “delete” button is not displayed.
We are trying to figure out the proper structure for this to make it work.
any help would be appreciated! Thanks!
- The topic ‘if else php statements’ is closed to new replies.