I was wondering about the difference about ew_Execute() vs. $conn->Execute(). Are there pros/cons? Is it better to prefer/avoid one of it?
ew_Execute() vs. $conn->Execute()
-
- User
- Posts: 11905
They have the same functionality. Either ew_Execute() or $conn->Execute() will execute the SQL using the current connection.
The only difference is that if you are using $conn->Execute() --- especially within the certain function/server event --- then you have to declare the $conn as a global variable, whereas ew_Execute() does not need the $conn declaration before use it.