[Release] Premium System (CMS by Hen!)

01/30/2013 17:58 Ketchup™#31
What value ?!

Wtf what i must check so is it writen ...

$sqlCoins = "SELECT coins FROM account.account WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."' LIMIT 1";
$qryCoins = mysql_query($sqlCoins,$sqlServ);
$getCoins = mysql_fetch_object($qryCoins);

$sqlDexter = "SELECT silver_expire FROM account.account WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."' LIMIT 1";
$qryDexter = mysql_query($sqlDexter,$sqlServ);
$getDexter = mysql_fetch_object($qryDexter);


$vacsie = $getDexter->silver_expire;
$mensie = "0000-00-00 00:00:00";
01/30/2013 18:14 DexterSK#32
When value of column silver_expire = 0000-00-00 00:00:00 you dont have premium.
When value of column silver_expire = larger as 0 you have premium.

[Only registered and activated users can see links. Click Here To Register...]
01/30/2013 18:35 Ketchup™#33
So i dont have Premium an the site says i have it ?!
01/30/2013 18:48 DexterSK#34
strange -_-

So try replace:
PHP Code:
    if($vacsie <= $mensie)  { 
with:

PHP Code:
    if($vacsie == $mensie)  { 
-_-
01/30/2013 18:57 Ketchup™#35
Okay thank you
02/01/2013 10:48 n0tfound#36
file deleted ? how many give me itemshop ? plz i need more link =(
02/01/2013 20:07 DexterSK#37
#Close please
02/03/2013 16:03 .Scratchy.#38
The Problem of your script ist:

Quote:
if ($vascie << $ mensie) {
it should be:

Quote:
if ($vacsie == $mensie or $vacsie < date("Y-m-d H:i:s")) {
Than it would be work ;-)
02/03/2013 18:45 DexterSK#39
Quote:
Originally Posted by .Scratchy. View Post
The Problem of your script ist:



it should be:



Than it would be work ;-)
Thanks :D My Fail :D