php - Put mysql data into html table with edit buttons -


i'm attempting make ticket system out smaller company. i've made submission form saves mysql database. can save data table , pull date html table. i've been searching day, however, figure out how put in cell allow me click button, link, or whatever change row completed. have field in database it, don't know how cell table or how link understand row i'm talking about. i've been searching google awhile , getting how make html table mysql data or how insert mysql table.

you'll need 3 things: update statement, field in row want update, , unique way of identifying row (entry) want update.

you'll want create link similar to:

<a href='/path/to/update.php?id=myuniqueidentifier'>complete</a> 

and on php page you'll want use $_get['id'] passed (make sure use msyql_real_escape_string()) update row , set completed flag whatever want.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -