Quote:
	
	
		| 
					Originally Posted by tommyk1210
					
				 Well in all intents and purposes the script should work as he currently has it.
 @Fireballchad: May we look at the script? Maybe we can spot an error as the script should work as you described it.
 | 
	
 Oh I put it back to normal because I could not get it to work properly. 
I will show you what I was attempting to do.
	PHP Code:
	
		
			
              $query = "SELECT * FROM `adopts_users` WHERE `username`='$loggedinname'";
                  $result = mysql_query($query);
                  $num = mysql_numrows($result);
                  
                  $i = 0;
                  while ($i < 1) {
                      $bonus = @mysql_result($result, $i, "bonus");
                      $i++;
                  }
$newclicks = $totalclicks + $bonus;// Add 1 click to the current click total of this adoptable...
    
    // Actually insert our click information into the database...
    $query = "UPDATE ".$prefix."owned_adoptables SET totalclicks='$newclicks' WHERE aid='$id'";
    mysql_query($query); 
		
	
 ***Edit
Hmmm I just changed it on my script to see if it could work... and it worked... I have no clue why it was not working before hand...