Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/01/2008, 03:50
rusox
 
Fecha de Ingreso: enero-2008
Mensajes: 1
Antigüedad: 16 años, 3 meses
Puntos: 0
Problema con array_keys

Hola tengo un problema con array_keys y array_keys_exist , me da el siguiente error:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/xxx/public_html/order/next.php on line 38

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/xxx/public_html/order/next.php on line 45

Y el codigo es este:

Código PHP:
$viewaccounts listaccts$rowxxx[HOST] , $rowxxx[WHMUSERNAME] , $rowxxx[RAK] , $rowxxx[USESSL]);
$a_keys array_keys$viewaccounts );
$account_found "NULL";
for( 
$i 0$i count$a_keys ); $i++ ) {
if( 
in_array"$_POST[DOMAIN]$_POST[EXTENSION]"$viewaccounts[$a_keys[$i]] ) )
$existcheck Fail$reason 'Error : Dicho nombre de dominio ya está en uso, elija otro.'; }
}

if( 
array_key_exists($_POST[USERNAME], $viewaccounts) )
{
$existcheck Fail$reason 'Error : Nombre de usuario ya está en uso, elija otro.';

En el servidor tengo PHP 4.4.7 y MySQL 4.1.22-standard

Les agradeceria la ayuda.