Hi Guys,
I am new to PHP but trying to pick up as im trying to build a system for my work.
This is an easy one…i think. What I would like to be able to do is pull down data from a database and display it in a table (ive done that). Then I would like to be able to click on one of the rows of data that then takes me to a fresh table with more information.
I understand how it would work, just cant seem to code it.
Select whole database - Display in table
Onclick row
Select from database where row = what ever i clicked on.
I want to be able to click the whole row as this is going to be on a touch screen.
This is my code for the first bit (probs a bit messy)
[code]
Job Ref | Client | Site | Job Description | Start Date | Duration | Machines | Technicians |
---|---|---|---|---|---|---|---|
" . $row['jobref'] . " | "; echo "" . $row['client'] . " | "; echo "" . $row['site'] . " | "; echo "" . $row['Job_description'] . " | "; echo "" . $row['start_date'] . " | "; echo "" . $row['duration'] . " | "; echo "" . $row['machines'] . " | "; echo "" . $row['technicians'] . " | "; echo "
Thanks,
Tim