![]()  | 
	
| Home Community Mys-Script Creative Off-Topic | 
		
			
  | 
	|||||||
| 
		 | 
	Thread Tools | Display Modes | 
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Currently I have this which says if you have more than 5 eggs you can't adopt. 
		
		
		
		
		
		
			
		
		
		
		
		
	
	Code: 
	$stmt = $adopts->query("SELECT * FROM ".constant("PREFIX")."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'");
$data = $stmt->fetchAll();
$num = count($data);
if($num >= 5){ 
$canadopt = "no"; 
$article_title = "Too many eggs!"; $article_content = "You already have too many eggs to take care of! Come back once you have hatched an egg!"; 
}
 | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Number of Pet Colors? | Glow | Feedback and Suggestions | 4 | 12-12-2014 09:27 PM | 
| Number of times the user can adopt the pet? | Clessidra | Questions and Supports | 4 | 06-16-2013 10:23 PM | 
| Limting Number of Adoptions | GuardiansWish | Questions and Supports | 6 | 10-15-2012 06:56 PM | 
| Level Up automaticly when it get a number of clicks? | Blues | Questions and Supports | 1 | 07-26-2009 10:08 AM | 
| Freezing and limiting adoptables | Seapyramid | Questions and Supports | 13 | 04-19-2009 06:06 PM | 
						What's New? | 
					
						What's Hot? | 
					
						What's Popular? |