LoneZZ
Member
- Oct 8, 2011
- 56
- 1
I never coded PHP before, but from looking at the cms I managed to make this:
<li class="icon-vip"><a href="/vip">
<?php
$amvip= mysql_query("SELECT * FROM users WHERE username={username}");
$vipam = mysql_fetch_array($amvip);
if($vipam['vip']==0) { echo '<a href="{url}/vip>Buy VIP!</a>'; } else { echo 'Thank you for buying VIP!';}
?>
</a></li>
I get this error:
<li class="icon-vip"><a href="/vip">
<?php
$amvip= mysql_query("SELECT * FROM users WHERE username={username}");
$vipam = mysql_fetch_array($amvip);
if($vipam['vip']==0) { echo '<a href="{url}/vip>Buy VIP!</a>'; } else { echo 'Thank you for buying VIP!';}
?>
</a></li>
I get this error:
You must be registered for see links
, I'd like to know how to fix it to start coding more features on my CMS, thanks in advance