I'm looking for a single webpage and a PHP script.
On the webpage I would like 7 buttons (1-7). On pressing one of these it should use the PHP script to send data including current timestamp to a specified table in the Wordpress database. For example, on pressing button 1:
INSERT INTO TableName (Value, IdentifierText, , start_time)
VALUES ('27','0', '2020-10-20 22:20:43')
Note there is a Primary Key in TableName that is autogenerated and that start_time = the timestamp when the button is pressed)
Once submitted to the database the webpage should refresh, however, the button that has just been selected should be greyed out, i.e. it isn't possible to submit the same button value twice in a row.
I also need to know where to securely place the PHP file in the WP structure, this is currently being developed on localhost using WAMP.
About the recuiterMember since Mar 14, 2020 Digital Art
from Rio Negro, Argentina