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.';
}
Les agradeceria la ayuda.