PDA

View Full Version : Attachment update


Vishaaldesiking
01-24-2013, 05:42 PM
Hi to everyone reading this:

I wanted some help.. In my database i have a table "POST" column ATTACH for which the default value is "0" now i want to write a "IF" clause in a Plugin which will check if this Value is 0 or 1 and triggers a HOOK if the value is 1

can somebody help me with this...??

Any help will be immensly appreciated.

kh99
01-24-2013, 06:54 PM
Which hook location is your plugin using (or if you don't know yet, when do you want your code to run)?

Also, I'm not sure what you mean by "trigger a hook".

Vishaaldesiking
01-24-2013, 07:11 PM
i want my script or code to run when a user checks a Check Box which makes the value for the above mentioned colum by default is 0 and when this checkbox is ticked the value changes to 1 and then i want this code to run.