I’m attempting to make a ticket system for out smaller company. I’ve made a submission form that saves to a mySQL database. I can save the data into the table and pull the date into a html table. I’ve been searching all day, however, to figure out how to put in a cell that will allow me to click a button, link, or whatever to change that row to completed. I have a field in the database for it, but I don’t know how to get that cell into the table or how to get the link to understand which row I’m talking about. I’ve been searching Google for awhile and only getting how to make a html table with mySQL data or how to INSERT into a mySQL table.
Share
You’ll need 3 things: an
UPDATEstatement, the field in the row you want to update, and some unique way of identifying which row (entry) you want to update.You’ll probably want to create a link something similar to:
and on the php page you’ll want to use the
$_GET['id']passed (make sure to use msyql_real_escape_string()) toUPDATEyour row and set your completed flag to whatever you want.