private function upDate($table, $values, $where) { $up_add = new mysqlQuery(); if ($up_add->update($table, $values, $where)) { echo "Student data updated"; } else { echo "Data not updated"; } }
private function upDate($table, $values, $where, $c_id) { $up_add = new mysqlQuery(); if ($up_add->update($table, $values, $where)) { // echo "Course data updated"; $qury = "ajaxPost1('/ACTA_project/mod/admin_staff/course_details.php',\$('#c_id'))"; echo "<div class='panel_upper'>\n <div class='p0'>\n <label class='p2'> Subject Edited Successfully..!!</label>"; echo "<td><input class='input data' type='hidden' name='c_id' id='c_id' value='" . $c_id . "'></td>"; echo "<td><input class='button1' type='button' name='views' id='views' value='OK' onclick=" . $qury . "></td>"; } else { echo "Data not updated"; } }