Register for your free account! | Forgot your password?

You last visited: Today at 00:49

  • Please register to post and access all features, it's quick, easy and FREE!

 

Hey ich hab ne Frage

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 67
Received Thanks: 14
Exclamation Hey ich hab ne Frage

Also habe mein eigenes HoloCMS - Habbo Retro, jetzt wollte ich Badgetshop entbuggen und dieser fehler kommt immer.

"
Purchase Badge


Parse error: parse error in C:\xampp\htdocs\habblet\ajax_shopBadgePurchase.php on line 24 "

Ich zeige mal den script

PHP Code:
<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright  2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================+
|| # HoloShop 1.0 Coded By Yifan Lu
|+===================================================*/

$id FilterText($_POST['optionNumber']);

$row mysql_fetch_assoc(mysql_query("SELECT * FROM cms_badge_shop WHERE id = '".$id."' LIMIT 1"));

if(
$myrow['credits'] < $row['cost']){
    
$msg "You don't have enough credits to complete this purchase.";
} else {
    if(
$row['minrank'] <= $userrow['rank']){
        
$check mysql_fetch_assoc(mysql_query("SELECT * FROM user_badges WHERE userid = '".$my_id."' AND badgeid = '".$row['image']."'"));
        if(
mysql_num_rows($check) == 0){
            
mysql_query("INSERT INTO user_badges (userid,badgeid,iscurrent) VALUES ('".$my_id."','"$row['image']"','0')");
            
mysql_query("INSERT INTO cms_transactions (userid,amount,date,descr) VALUES ('".$my_id."','".$row['cost']."','".$date_full."','Purchased the badge ".$row['name']."')") or die(mysql_error());
            
$msg "You have successfully purchased the badge ".$row['image'];
        }else{
            
$msg "You already own this badge!";
        }
    }else{
        
$msg "You do not have premission to buy this badge!";
    }
}

?>

<div id="hc_confirm_box">

    <img src="<?php echo $cimagesurl.$badgesurl.$row['image'].".gif"?>" alt="" align="left" style="margin:10px;" />
<p><b><?php echo $row['name']; ?></b></p>
<p><?php echo $msg?></p>

<p>
<a href="#" class="new-button" onclick="habboclub.closeSubscriptionWindow(); return false;">
<b>Done</b><i></i></a>
</p>

</div>

<div class="clear"></div>



Deadsecret is offline  
Old   #2
 
elite*gold: 2292
Join Date: Mar 2010
Posts: 1,785
Received Thanks: 1,072
Das kommt unter Coden am anfang rein , nicht unter OtherGames . ^^

Edit: Kann ich leider auch nicht helfen.


Ꮠnfinity. is offline  
Old   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 67
Received Thanks: 14
mir egal, dan nverschiebt es es ist sehr wichtig !

EDIT:

BEKOMME ICH MAL EINE ANTWORT ES IST SEHR WICHTIG !
Deadsecret is offline  
Reply



« Previous Thread | Next Thread »



All times are GMT +1. The time now is 00:49.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.