![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
Still looking for some help with this
![]()
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
![]()
Okay... I'm not sure if this will work, but declare a new adopt in the adopt file (if not already declared):
$adopt = new Adoptable($mysidia->input->post("id")); Then: $cost = $adopt->getCost(); $usermoney = $mysidia->db->select("users", array("money"), "username = {$mysidia->user->username}")->fetchColumn(); $newusermoney = $usermoney - $cost; $mysidia->db->update("users", array("money" => $newusermoney), "username='{$mysidia->user->username}'"); .... Is this what you need? |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |