Hello guys.
In this project i am involved with we want to list some columns from a sql database. We want to list them as a table which you can make changes to, but the first two should be edited through dropdown and and the other two which are dates should be edited by a pop up date picker java script.
Like this:
USER PROJECT START END
Dropdown Dropdown Datepicker Datepicker

The date picker can be applied to text fields, etc within a form, basicly when you press it a calender will pop up.
After all the changes have been made we of course want to update the database.
I hope you understand and can give a hand with this.

something like this.

//K0ns3rv

simply show whatever you want to fetch from database in the html the way you said above.
But with the update button do like below -

if(isset($_POST['update_btn']) && $_POST['update_btn'] =='update')
{
$col1 = $_POST['elem1'];
$col2 = $_POST['elem2'];
//your code to update table
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.