Adding multiple rows via hook or script
-
I’m trying to figure out how to script the addition of multiple rows in an archival database project I’m working on. The input would be a year and a number of records to be added for that year. With this input, I’d like to add, say, 23 new rows for the year 2010, and then 27 for 2011, and so on. And once I get this working I’ll use the same technique for a few other places. Since hooks only use JQuery or Javascript, both front-end, they don’t seem to do this. PHP can do it, but I can’t figure out how to fire off a PHP script from a hook or a button. Any help is appreciated!
You must be logged in to reply to this topic.