Added if statement to include try and catch statement. Now the file has the ability to allow new input to the database using php thru the form fields.  and  buttons appear and dissapear to to the limits of page one and the max page as dictated by . Could use styleing but functionality is working.