how can i use the Today_and_Now() function for my INSERT stmt?
my stmt seems correct..but, it gives this error
DBD::mysql::st execute failed: You have an error in your SQL syntax near ''',NOW())' at line 1
$stmt = "INSERT INTO TB_LEAVE_RECORD VALUES(?,?,?,?,?,?,?,NOW())";
$sth = $dbh->prepare($stmt);
$sth->execute($D_EMPLOYEE_ID,$F_LEAVE_TYPE_ID,$F_DAY,$F_START_DATE,$F_END_DATE,$F_STATUS_ID,$F_REASON);
$sth->finish;
my stmt seems correct..but, it gives this error
DBD::mysql::st execute failed: You have an error in your SQL syntax near ''',NOW())' at line 1
$stmt = "INSERT INTO TB_LEAVE_RECORD VALUES(?,?,?,?,?,?,?,NOW())";
$sth = $dbh->prepare($stmt);
$sth->execute($D_EMPLOYEE_ID,$F_LEAVE_TYPE_ID,$F_DAY,$F_START_DATE,$F_END_DATE,$F_STATUS_ID,$F_REASON);
$sth->finish;