- Joined
- May 7, 2011
- Messages
- 342
- Reaction score
- 25
Its working so fascinating.
Does this work with Desire Edit of UberCMS compatible with Phoenix?
No, you didnt do it right. How i did it was right, So don't try to make my **** better if you can't dylan.Hmm thats not good!
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
include('config.php');
define("THIS_SCRIPT", 'vip');
$username = $core->EscapeString($_SESSION['username']);
$query = "UPDATE users SET vip='1' WHERE username = '".$_SESSION['username']."' ";
$query = "UPDATE users SET rank='2' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
?>
Fixed by Dylan "Dylz"
It works with everything.
No, you didnt do it right. How i did it was right, So don't try to make my **** better if you can't dylan.
$username = $core->EscapeString($_SESSION['username']);
$query = "UPDATE users SET vip='1' WHERE username = '".$_SESSION['username']."' ";
$query = "UPDATE users SET rank='2' WHERE username = '".$_SESSION['username']."' ";
Why use $username = blabla when your just getting it from the session anyway? geez.
Just be happy it works. I'm using this and it works perfect.
**** if it works, it still sucks.
Script really fails guys :L
$query = "UPDATE users SET vip='1', rank='2' WHERE username = '".$_SESSION['username']."' ";
Well, I got haters like MerijnZ. Trying to say i cant code, But I'm just a beginner? Atleast it's working. And that's the whole point.
It works ? Lol, if you want everybody VIP then yes
This code totally Fail, what if iam staff rank 6 and i want buy vip ?! if i used this code my rank will be go away to be 2. you got a code working for staff too please ?
thank you