From the last post, first, thank you for your reponses, but I
am still not clear about "hash of hashes". I have one more example here, support,
#########################################################
$statement = "select A, B , C from myTable";
if ($db -> Sql($statement))
{
# ..doing error handling
}
while ($db -> FetchRow())
{
@fields = $db -> Data();
$tempids{$fields[2]}{$fields[0]}{$fields[1]} = 1;
$rev_tempids{$fields[2]}{$fields[1]}{$fields[0]} = 1;
$tempidstrings{$fields[2]}{$fields[0]} .= "$fields[1],";
}
#########################################################
what is the purpose doing that, ie, assigned $tempids{}{}{}=1, ...? can I assign to another
value, instead of 1? In the if-statement, support,
####################################################
if($tempids{A}{C}}
{
# do something
}
###################################################
and what will the $tempids{A}{C} returns?
thanks,
lucas
am still not clear about "hash of hashes". I have one more example here, support,
#########################################################
$statement = "select A, B , C from myTable";
if ($db -> Sql($statement))
{
# ..doing error handling
}
while ($db -> FetchRow())
{
@fields = $db -> Data();
$tempids{$fields[2]}{$fields[0]}{$fields[1]} = 1;
$rev_tempids{$fields[2]}{$fields[1]}{$fields[0]} = 1;
$tempidstrings{$fields[2]}{$fields[0]} .= "$fields[1],";
}
#########################################################
what is the purpose doing that, ie, assigned $tempids{}{}{}=1, ...? can I assign to another
value, instead of 1? In the if-statement, support,
####################################################
if($tempids{A}{C}}
{
# do something
}
###################################################
and what will the $tempids{A}{C} returns?
thanks,
lucas