UPDATE

25 June 2018
You can change a php function so that rather than requiring specific arguments that are specific to the table, you can create a more generic UPDATE function.  In the below update function we require the authorid, id and joketext as arguments: