Placed At :  BOM


Durga Prasad@SATYAM
11/30/2001 05:01 PM

Hi all,
Iam trying to compare two hash of arrays.
The idea is to compare the values and subtract.
I am trying to use the following pseudocode.
Is this approach correct?
#####Pseudocode
$datainput=DBI->connect("DBI:mysql:database=DATA;host=localhost......)
foreach ($hash1($key1))
     {
     foreach ($hash2($key2))
          {
          if $hash1($key1)==$hash2($key2)
               {
               $data1=$hash2($value1)-$hash1($key2);
               $data2=$hash2 ($value2)-$hash2(key2);
               $datainput->do("INSERT INTO DATA VALUES($data1, $data2)
               }
          }
     }
$datainput->disconnect();
exit;
#####Pseudo Code ends...

Rgds,
Durga Prasad



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to