View Single Post
  #7  
Old 02-27-2011, 12:41 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 33,303
fadillzzz is an unknown quantity at this point
Default

Oh so what you mean was, everytime an adoptables receives a click, the owner of the adoptables get the money?
That's easy, just change this query from line 238
PHP Code:
                  $query "SELECT * FROM `".$prefix."users` WHERE `username`='$loggedinname'"
into this
PHP Code:
                  $query "SELECT * FROM `".$prefix."users` WHERE `username`='$owner'"
and on line 253, find this query
PHP Code:
                  mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$loggedinname'"); 
and change it into this
PHP Code:
                  mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$owner'"); 
I think that should do the trick..
Reply With Quote