Search
 
SCRIPT & CODE EXAMPLE
 

PHP

upload video file in mysqli using php

include('conn.php');

  date_default_timezone_set("Asia/Karachi");
  $tods = date('Y-m-d H:i:s');
  $todrep=str_replace(' ', '-', $tods);
  $tod=str_replace(':', '-', $todrep);
  $formate=".mp4";
  $uname=$_POST['uname'];
 $ucountry=$_POST['ucountry'];
 $dir = '../upload/'.$ucountry.'-'.$tod.$formate;
 $input=$_FILES["ufile"]["tmp_name"];
 $inputname=$_FILES["ufile"]["name"];
 $ab = move_uploaded_file($input, $dir);
 if($ab)
 { 
       $uname=$_POST['uname'];
       $ucountry=$_POST['ucountry'];
       $file_name=$ucountry."-".$tod.".mp4";
    
     
     $ivideo=mysqli_query($conn, "INSERT INTO `nomad_data`( `user_name`, `country`, `file`) VALUES ('$uname',' $ucountry','$file_name')");
     if($ivideo){
        echo 'Your Video is submitted please submit more......!!!!';

     }else{
    
        echo "your video is not submitted";
    
     }
     
 }else{
    echo"video not move Error";
 }
 
Comment

PREVIOUS NEXT
Code Example
Php :: Call to a member function delete() on null laravel 8 
Php :: php soap wordpress parsing 
Php :: set modes magento 2 
Php :: wp plugin handles 
Php :: Terminfo file does not exist. tinker larvel 
Php :: Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel 
Php :: Comment supprimer les éléments liés à WordPress oEmbed 
Php :: single elimination php code 
Php :: how to add to array in single without repetation 
Php :: date selct option php 
Php :: get table row data onclick 
Php :: php print array source code 
Php :: php artisan vendor:publish aborted 
Php :: Php countup from a date 
Php :: woocommerce remove notification after some time 
Php :: PHP str_pad — Pad a string to a certain length with another string 
Php :: Deutsch korrektur 
Php :: barryvdh laravel dompdf pages total 
Php :: laravel query with optional filter 
Php :: php convert datetime to timestamp 
Php :: wordpress profile queries 
Php :: themeHeader 
Php :: Dispatch, performance 
Php :: wp dev tehem support widget 
Php :: SymfonyComponentHttpKernelExceptionNotFoundHttpException: POST http://localhost/post 
Php :: not have permision elgg settings.php 
Php :: Finding Vulnerable Urls 
Php :: frontend/config/main.php when deploying 
Php :: ass 
Php :: print array blade laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =