July 9, 201115 yr Hi there could someone please aid me in correcting this video uploading script so as to upload either on the server in its own file or in the database. <?php else if ($_GET['f'] == 'vid') { $dbData = @mysql_query("SELECT * FROM `".$MYSQL_DB_NAME_CORE."`.`users` vc_c_u WHERE vc_c_u.`U_ID` = '".GetUId()."'", $MYSQL_DB_LINK) or die(mysql_error); $dbData = @mysql_fetch_assoc($dbData); if ($_FILES['video_input']['error'] < 1 && $_FILES['video_input']['size'] > 0 && $_FILES['video_input']['size'] < 27097152 //27Mb limit && ($_FILES['video_input']['type'] == 'video/avi' || $_FILES['video_input']['type'] == 'video/mov')) { $newpdf = $dbData['UniqueDirectory']."vid".($_FILES['video_input']['type'] == 'video/avi' ? "avi" : "mov"); $result = move_uploaded_file($_FILES['video_input']['tmp_name'], $newpdf); } <div class="accordion-toggle" style="clear:both;"> Change Profile Video </div> <div class="accordion-content"> <form method="post" action="editaccount.php?attempt=1&f=vid"> <div class="EntryElement" style="padding-top:32px;"> <label style="float:left;padding-top:2px;"><strong>Current Profile Video</strong>:</label> <label style="float:right;"><?php echo $dbUserData['Video']; ?></label> </div> <div class="EntryElement" style="padding-top:32px;"> <label style="float:left;padding-top:2px;" for="vid_input"><strong>New Profile Video</strong>:</label> <input style="float:right;" size="20" type="file" name="vid_input" value="" /> </div> <div class="EntryElement"> <input style="float:right;" type="submit" value="Save Change"/> </div> please help
Create an account or sign in to comment