![]() |
Sergey Kornilov admin 5/3/2007 |
First of all - use BeforeDelete event. When AfterDelete event is executed record is deleted already and there is nothing to save. function BeforeDelete($where) |
R
|
rcurtin author 5/4/2007 |
OK Thanks for the reply I have tried that sample code (after of course changing it) but I still get this error. Technical information Error type 2 Error description odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement., SQL state 37000 in SQLExecDirect URL localhost/users/output/ARMPHP_list.php? Error file C:\Apache Software Foundation\Apache2.2\htdocs\Users\output\include\dbconnection.php Error line 56 SQL query delete from [ARMPHP] where [ARMPHP].[Serial Number]='ghu0h97 g' Solution This is a general error. It occurs when there is an error in event code or in SQL. Send your SQL or event code along with full error message tosupport@xlinesoft.com.
{ return odbc_exec($conn,$qstring); }
|
R
|
rcurtin author 5/4/2007 |
Problem Solved I had to add [ ] to the field entries this is the finished code that finally got it to work. |