<?php
$now = date("m/j/y h:i:s",time());
include "connect.php";
$now = date("j/m/y h:i:s",time());
$stmt = "Select serial FROM arp_table where md5 is null;";
print '<META HTTP-EQUIV="refresh" CONTENT="900">';
print '<body bgcolor="#FFFFCC">';
echo "<BR>";
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo $row->SERIAL . ' ---> ' . md5($row->SERIAL) . '<br>';
$stmt2 = "update arp_table set md5 = '" . md5($row->SERIAL) . "' where serial = '$row->SERIAL'; ";
// echo $stmt2 . '<br>';
$sth2 = ibase_query ($dbh,$stmt2);
}
ibase_free_result($sth);
ibase_close($dbh);
?>