#1
|
|||
|
|||
How to "buy" adoptables?
I just can't get this right: Checking if the user has enough money to adopt a certain creature.
How can I do this, if the amount of currency the user has is in the 'users' table, in the 'money' field, and the cost of the adoptable is located in the 'adoptables' table in the 'description' field? |
#2
|
|||
|
|||
RE: How to "buy" adoptables?
You would have to get the info from both tables and store in variables. Then check if the money variable is greater than or equal to the currency in the users table. If it is, then deduct the currency and do the transaction. :)
|
#3
|
|||
|
|||
RE: How to "buy" adoptables?
Quote:
It takes me to the name the adoptable page even if I in fact have less money than the adoptable cost. This is the code I'm using: PHP Code:
What is the problem? |
#4
|
|||
|
|||
RE: How to "buy" adoptables?
I think this...
PHP Code:
PHP Code:
Try that. |
#5
|
|||
|
|||
RE: How to "buy" adoptables?
Nope, it's still not working.
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
RE: How to "buy" adoptables?
WELL I HOPE WHEN IT'S DONE, I CAN MANAGE IT IN mysite.com/adm .... instead on phpmyadmin..
on the next few days my nose will bleed with those scripts. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a "Faction" for adoptables/owned adoptables | Vaporman87 | Questions and Supports | 1 | 03-04-2014 03:38 PM |
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] | Ashje | Addons/Mods Graveyard | 2 | 05-24-2009 03:17 AM |
What's New? |
What's Hot? |
What's Popular? |