⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

Executing Commands with the exec() Method

The exec() method is used to execute SQL statements that do not return a result set, such as INSERT, UPDATE, or DELETE. The main advantage of this method is that it returns an integer representing the number of rows that were affected (added, updated, or deleted) by the command. If no rows were affected, the method returns 0.

EXAMPLE
RESULT
The result will be displayed here...

Practical Application: We use the exec method for quick operations where prepared statements are not required (e.g., clearing logs or quick status updates). Check the process at home by following these steps: