![]() |
Sergey Kornilov admin 10/15/2013 |
I'm not seeing any obvious errors in your code. Here are some troubleshooting tips. $strSQLSave = "UPDATE Students SET Totalvisits = Totalvisits+1 WHERE StudentID='".$values["RegStudentID"]."'";
|
W
|
wilmer author 10/16/2013 |
I'm not seeing any obvious errors in your code. Here are some troubleshooting tips. Modify your code the following way: $strSQLSave = "UPDATE Students SET Totalvisits = Totalvisits+1 WHERE StudentID='".$values["RegStudentID"]."'";
|
W
|
wilmer author 10/16/2013 |
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$strSQLSave = "UPDATE Students SET Totalvisits = Totalvisits+1 WHERE StudentID='' at line 1 |
![]() |
Sergey Kornilov admin 10/16/2013 |
Is RegStudentID field in Register table an autoincrement field? If yes, it doesn't exist in BeforeAdd event. Move your code to AfterAdd event. |