1

I am making a web app using PHP. I want to place event triggers on the database.

I have the triggers wriiten. I have no Idea where to place them so that it is executed.

coder
  • 1,809
  • 4
  • 19
  • 24
  • 1
    What exactly do you mean by that? Aren't triggers independent of the software/language using the db? – kero Mar 29 '14 at 14:58
  • @kingkero I have the triggers wriiten. I have no Idea where to place them so that it is executed. – coder Mar 29 '14 at 15:03
  • Triggers belong in the DBMS. So, use phpmyadmin or whatever tool you use to administrate your database and define the triggers. – TheWolf Mar 29 '14 at 15:32

1 Answers1

2

A trigger is written like you write normal sql queries.

For example : Create mysql trigger via PHP?

Where are you using it though?

Community
  • 1
  • 1
Diffy
  • 2,339
  • 3
  • 25
  • 47
  • yeah. But what are u doing with triggers? and how does its availability to all users affect you? – Diffy Mar 30 '14 at 09:35