Hello.
Can I just enquire.
I'm looking into creating a menu for my site.
I'd just like to ask if I can use an IF statement in html or would I be better doing it in php?
Thank You.
If Statement
Moderators: egami, macek, gesf
php
Code: Select all
<?php
if (condition) {
execute php code here;
}
-
- New php-forum User
- Posts: 14
- Joined: Mon Oct 24, 2016 11:16 pm
Thanks for sharing, was looking for this:)hyper wrote:php
Code: Select all
<?php if (condition) { execute php code here; }