thanks, but Not exactly, what I want is this:
PHP Code:
$newclicks = $totalclicks + 1; // Add 1 click to the current click total of this adoptable...
$newdollars = $dollar + 10; //make it work
// Actually insert our click information into the database...
$query = "UPDATE ".$prefix."owned_adoptables SET totalclicks='".$newclicks."' WHERE aid='".$id."'";
mysql_query($query);
$query = "UPDATE ".$prefix."users SET dollar='".$newdollars."' WHERE uid='".$uid."'";
mysql_query($query);
I need this: