Locking Link with PHP

nisdee

Regular Member
Joined
Nov 16, 2014
Messages
381
Reaction score
151
So I made a referral site and I'm not very good with Php...

So I want a button which is a link to other site so be locked until member gets 10 points or so

This is php condition ( I don't know what to insert here)

<? if($hits > 9){
?>

And this is the button

<button type="button" class="button" onclick="location.href='#';">Click me</button>
 
Code:
<?php if($hits > 9) : ?>
    <button type="button" class="button" onclick="location.href='#';">Click me</button>
<?php endif; ?>
 
Thanks, gonna try it out
 
Back
Top