x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Aug 2008
Posts: 12
Credits: 315
hacktheplanet is on a distinguished road
Quote  
08-07-2008, 11:58 PM
MMaking a button that adds coins.

Ok first open your php welcome file. find were you want to put the link.
add this were you want the link filling in the game address
<a href='www.yougameaddress'/coins.php>Get extra Coins</a>
You can name the file anything just rename the coins part.
You can also change text be changing Get extra Coins.

Now to make the coins.php

Make a new file called what ever you have in the link with the .php at the end
in side it add this.

Code:
<?php
print "<h3>You got 100 Free Rings</h3>";
if($db->query('users ringincrease=1'))
{
{ die("<h1>You have already Collected your 100 coins.</h1>"); }
}
$db->query("UPDATE users SET rings=rings+100, ringincrease=ringincrease+1 WHERE userid=$userid");
print "<a href='home.php'>Home</a>";
$h->endpage();
?>

Last edited by hacktheplanet; 08-08-2008 at 12:01 AM.
Reply With Quote
hacktheplanet is offlineReport Post
x10 Sophmore

Join Date: Feb 2008
Posts: 100
Credits: 2,854
Conmiro is on a distinguished road
Quote  
08-08-2008, 12:05 AM
Re: MMaking a button that adds coins.

Username: conmiro
You got 100 Free Rings

Fatal error: Call to a member function query() on a non-object in /home/conmiro/public_html/rpg/welcome.php on line 10
Edit:
Thanks, it works prettywell i think otherwise, excep when i refrehs it keeps giving me 100 rings.
__________________
Find me helpful? Click on the Blue Check mark at the top right corner of my post! It helps my reputation!


http://chaoclub.exofire.net

Last edited by Conmiro; 08-08-2008 at 12:05 AM. Reason: Automerged Doublepost
Reply With Quote
Conmiro is offlineReport Post
x10Hosting Member

Join Date: Aug 2008
Posts: 12
Credits: 315
hacktheplanet is on a distinguished road
Quote  
08-08-2008, 12:14 AM
Re: MMaking a button that adds coins.

ya the error means it didn't fins the database. i'm going to fix that
Edit:
oh and if you can post your entire welcome.php so i know exactly what it looks like and so i can fix the code for that file

Last edited by hacktheplanet; 08-08-2008 at 12:14 AM. Reason: Automerged Doublepost
Reply With Quote
hacktheplanet is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PayPal button code... componentwarehouse Programming Help 3 06-17-2008 07:22 AM
Flash button for 50 Credits: satheesh The Marketplace 4 01-25-2008 09:43 AM
Firefox 'Back' Button Problems GG-Xtreme Off Topic 3 12-14-2007 11:55 PM
Adds on advanced mitamata Free Hosting 2 10-07-2007 11:49 AM
CGI adds? FeestBijtje Free Hosting 0 09-19-2005 03:00 PM


All times are GMT -5. The time now is 06:54 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Chaminade Santa Cruz | Car Finance | Car Finance | Free Ringtones | Fish Tank Help