From: wbudic Date: Fri, 19 Oct 2018 06:41:07 +0000 (+1100) Subject: Fixed auto DB creation due to ne field AMMOUNT. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=3ae59e032a720df0b8516e28cf5cba8e51f87aca;p=LifeLog.git Fixed auto DB creation due to ne field AMMOUNT. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index bb3ed77..59360e2 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -349,9 +349,9 @@ sub checkCreateTables(){ print "

Error->"& $DBI::errstri &"

"; } - $sth = $dbh->prepare('INSERT INTO LOG VALUES (?,?,?)'); + $sth = $dbh->prepare('INSERT INTO LOG VALUES (?,?,?,?)'); - $sth->execute( 3, $today, "DB Created!"); + $sth->execute( 3, $today, "DB Created!",0); $stmt = qq(