Tag : Trigger

ItSolutionStuff.com have tutorials for Trigger tag, here you can study articles of Trigger tag, Trigger tag posts collection, most popular and useful tutorials of Trigger tag, here you can find list of all relevant posts and example about Trigger tag, we have lists of tutorials and examples about Trigger tag. very simple and quick example collection of Latest Trigger tag.



Example of trigger on after delete with update query mysql

Sometimes we need to fire trigger like after delete update some fields of another tables. for example if you have chat_message tables and when remove row on this table then we need to update "remove_counter(remove_counter + 1)" on users table. i did give you bellow example you can see how to write trigger code: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> delimiter // CREATE TRIGGER add_ban_counter_in_users AFTER DELETE ON `chat_messages` FOR EACH ROW BEGIN UPDATE `users` SET remove_counter = users.remove_counter + 1 WHERE users.id = old.user_id.....

By Hardik Savani | April 5, 2016 | | 3858 Viewer | Category : PHP MySql SQL
READ MORE

    Laravel 5.3 new feature and update - $loop variable

    Laravel 5.3 new feature and update - $loop variable

    Open Post

    Codeigniter 3 - CRUD(Create, Read, Update and Delete) using JQuery Ajax, Bootstrap, Models and MySQL

    Codeigniter 3 - CRUD(Create, Read, Update and Delete) using JQuery Ajax, Bootstrap, Models and MySQL

    Open Post

    PHP - Dynamically Add Remove input fields using JQuery Ajax Example with Demo

    PHP - Dynamically Add Remove input fields using JQuery Ajax Example with Demo

    Open Post

    Multi select autocomplete jquery example with code

    Multi select autocomplete jquery example with code

    Open Post

    How to upload and resize image in PHP ?

    How to upload and resize image in PHP ?

    Open Post

    How to create REST API in Laravel 5 ?

    How to create REST API in Laravel 5 ?

    Open Post