Soldato
		
		- Joined
- 27 Dec 2005
- Posts
- 17,316
- Location
- Bristol
I'm trying to do an in_array on a database array. Code:
	
	
	
		
and I'm getting the error;
I've tried using the in_array straight on $sqlips as well and get the same error. Any ideas?
	
		
			
		
		
	
				
			
		Code:
	
	$sqlips = mysql_query("SELECT * FROM blockedips");
$ips = mysql_fetch_array($sqlips);
if (in_array ($_SERVER['REMOTE_ADDR'], $ips)) {
exit();
} else {
......and I'm getting the error;
Warning: in_array() [function.in-array]: Wrong datatype for second argument in xxxxxx/log.php on line 4
I've tried using the in_array straight on $sqlips as well and get the same error. Any ideas?
 
	 
  
 
		 
 
		 
 
		 
 
		