ew_Execute() vs. $conn->Execute()

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

ew_Execute() vs. $conn->Execute()

Post by digitalphotoworld »

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?


mobhar
User
Posts: 11905

Post by mobhar »

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.


Post Reply