Admin Panel

Upload your fileHere

Etti Annal Nagar
Poonamallee , Chennai- 600056

Mob 1 : + 91 96000 94922

Mob 2 : + 91 88381 36986

Email : msdcricacademy@gmail.com


Subscribe to get monthly newsletter

MSD Cricket Academy is committed to ensuring that your privacy is protected. you can be assured that it will only be used in accordance with this privacy statement Privacy policy.

© 2019 MSD Cricket Academy. All Rights Reserved | Design by LS Design

function overwrite() { var r=confirm("The same file name existing. Overwrite File?") if (r==true) { document.write(""); alert("overwrite done"); } else { alert("You pressed Cancel!") } } $target = "files/"; $target = $target . basename($_FILES['upfile']['name']); $vbasename = basename($_FILES['upfile']['name']); if (empty($vbasename)) { $query = "UPDATE tablefile SET fld_title = '{$file_title}', fld_tags = '{$content}', fld_user = '{$vuser}', fld_datetime = '{$vdatetime}' WHERE ndex_fileid = {$id}"; $result = mysql_query($query); if (mysql_affected_rows() == 1) { $message = "
The File was successfully updated.
"; } else { $message = "
The File could not be updated.
"; $message .= "
" . mysql_error(); } } if (!empty($vbasename)) { // IF THERE IS FILE TO UPLOAD /* this script not working echo ""; */ $vrow = get_file_filepage($_GET['filepage']); $query = "UPDATE tablefile SET fld_title = '{$file_title}', fld_tags = '{$content}', fld_user = '{$vuser}', fld_datetime = '{$vdatetime}', fld_filename = '{$vbasename}', fld_filetype = '{$vfiletype}', fld_filesize = '{$vfilesize}' WHERE ndex_fileid = {$id}"; if(!mysqli_query($con, $query)){ printf('Error ' . mysqli_error($con)); } $result = mysql_query($query); move_uploaded_file($_FILES["upfile"]["tmp_name"],"server/php/files/" . $_FILES["upfile"]["name"]); $message = "
New File: $vbasename, succesfully updated.
"; }