I have a query to draw it out on my redhat 7.1 box with MySQL 3.23 and I increment it and run update query . Some where it resets back to zero all the time
the code foreach $row(@$array_ref) { my($num,$title,$media,$serial,$time,$class,$remarks,$custody,$loc, $format,$qty,$lab,$rew,$sta,$history5,$check) = @$rows; $history2 = $history5; $history2++; } $dbh2 =DBI ->connect($data_source, $username, $password); my $sth2 = $dbh2 -> prepare("update media1 set history5 ='$history2' where num = '$num'"); $sth2 -> execute or die " unable to execute query "; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]