Don't use array_push(). =)
if ($firstpass == 1)
{
$resultArray = array($id => array(
"UserID"=>$id,
"UserName"=>$UserName,
"Password"=>$Password,
"LastLogin"=>$LastLogin,
"IsMerchant"=>$IsMerchant,
"IsAdmin"=>$IsAdmin,
"TBDN"=>$TBDN));
$firstpass++;
}
else
{
$resultArray[$id] = array("UserID"=>$id,
"UserName"=>$UserName,
"Password"=>$Password,
"LastLogin"=>$LastLogin,
"IsMerchant"=>$IsMerchant,
"IsAdmin"=>$IsAdmin,
"TBDN"=>$TBDN);
}
Note that you can just use the direct
assignment = to set the values after you've
created the initial array.
'Luck
-Szii