close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

help customize triggers for insert or update record

Thread began 9/07/2010 4:14 pm by Miguel | Last modified 9/07/2010 4:21 pm by Miguel | 726 views | 1 replies


help customize triggers for insert or update record

Hello im trying to do an insert to the database and i would like it to be inserted if a form field has a specific value example i have a drop down list with 2 options confirmed = 1 and unconfirmed = 0, what i need is that when i press the submit button it checks on the triggers if the field that has the drop down is checked with 1 then do the insert if not then skip that insert to the database; a normal trigger would be like this

if ((((isset($_POST["confirmado"]))?$_POST["confirmado"]:"") != "")) // Trigger


if (isset($_POST["btn_Update1"])) // Trigger

i try to make my own triggers like this

if ((isset($_POST["btn_Update1"])) && ($_POST["confirmed"]== 1)) // Trigger

When i add my own trigger it doesnt insert into the database unless i place the code like this other

if ((isset($_POST["btn_Update1"])) && ($_POST["confirmed"]= 1)) // Trigger

But this way it never checks the value of the post variable and always insert no matter what option i have selected, can any one point me the correct direction on how i can archive this goal

Thanks in advance

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...