Comment

UPDATE_DB

Estimated reading: 1 minute 25 views

UPDATE all data to the database with auto-check and security filters. You can submit anything using your form, but this will check and filter out the exact database table fields. The correct data will be inserted into the table; others will be rejected.

\DevSecIt\UPDATE_DB($table, $submit_btn, $condition);

Demo 1 – [if you want to insert user data into the users table, suppose your submit button name is ‘UPDATE_DSI_DATA’ ]

\DevSecIt\UPDATE_DB('users', 'UPDATE_DSI_DATA', "`id`='1' ");
\DevSecIt\UPDATE_DB('users', 'UPDATE_DSI_DATA', "`id`='$id' ");

Leave a comment

Share this Doc

UPDATE_DB

Or copy link

CONTENTS