kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
sisnikol.com
/
skpadmin
/
includes
/
Upload FileeE
HOME
<?php $required = "<font color='#FF0000' size='1'>*</font>"; $conn = mysqli_connect(SYSTEM_DBHOST,SYSTEM_DBUSER,SYSTEM_DBPWD,SYSTEM_DBNAME); $fdata = array(); /*************************************/ $id=$_GET['id']; $bquery=mysqli_query($conn, "select * from tbl_course where id='$id'"); $brow=mysqli_fetch_array($bquery); if ($_POST['act'] == 'editcourse') { $cosname = mysqli_real_escape_string($conn, $_REQUEST['cosname']); $dt = date('Y-m-d'); $sql = "UPDATE `tbl_course` SET `cosname`='$cosname' WHERE id='$_REQUEST[upd_id]'"; //print $sql;exit; $rs = mysqli_query($conn, $sql); $msg = "Record Updated Successfully."; print "<script>"; print "self.location = 'manage_course.php?msg=$msg';"; print "</script>"; } ?> <div class="content_header"> <div class="heading flleft">Edit </div> <div class="heading flright"><a href="<?=$_curpage?>">« Back</a></div> </div> <div class="bodycontent"> <form name="form1" method="post" action="" enctype="multipart/form-data" onsubmit="return validate();"> <input type="hidden" name="upd_id" value="<?php echo $id;?>" /> <input type="hidden" name="act" value="editcourse"> <div id="validation_div" class="validation_error"></div> <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center"> <tr> <td align="left" class="label">Grade Name <?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" required="" value="<?php echo $brow['cosname'];?>" name="cosname" size="50" /></td> </tr> <tr> <td colspan="3" align="center"><p><INPUT type="submit" value="Update" class="button" /></p></td> </tr> </table> </form> </div>