![]() |
#1 |
Junior Member
Join Date: Feb 2006
Posts: 6
|
![]()
Hello,
Does anyone know how I post my data from ($_DATAGRID->update['task_id']) and get the update information updated in my database table? Otherwords, I run this datagrid table, click edit, edit some fields, click update and the updated values show as expected but the values are not updating in the table itself. Any help would be greatly appreciated! =============================================== CODE: // Include PHP ![]() include ('../../phpdatagrid/phpdatagrid.php'); // Connect to database $link = mysql_connect (xxxx); // Select database mysql_select_db('prim_gradebook', $link); // Do query and Get data $result = mysql_query("SELECT tb_gradedata.grade_id, tb_gradedata.STULINK, tb_gradedata.LASTNAME, tb_gradedata.FIRSTNAME, tb_gradedata.classid, tb_gradedata.task_id, tb_gradedata.Q1, tb_gradedata.Q2, tb_gradedata.Q3, tb_gradedata.Q4 FROM tb_gradedata, tb_tasks WHERE tb_tasks.taskid = tb_gradedata.task_id"); $data = array(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { array_push ($data, $row); } // Bind data (THIS IS IMPORTANT) $_DATAGRID->bind ('test', $data); //print_r($data) ?> ![]() PHP |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|