• IT

Showing conditional divs using php and if/else statements

If you want to show some divs instead of others on a website IF some condition is met you can use the following piece of code:

php if ($artist_id == “1980”) { ?>

Some data

php } else { ?>

Some other data

<? } ?>

The data and the whole layout can be different, as in this case, but it doesn’t have to.…

Read more
Back to top