Enter Keyword Hear for Search This Blog

Wednesday, 7 March 2018

How to download multiple file using php code

Download Multiple File in PHP

<?php

extract($_GET);

$link=mysql_connect("localhost","root","");

mysql_select_db("converter",$link);

$query="select * from multiple where id=$id";

$res=mysql_query($query,$link);

while($row=mysql_fetch_assoc($res))


$getfile=$row['PdfFilename'];

header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$getfile);
header('Content-Transfer-Encoding: binary');

$file = @ fopen($getfile, 'rb') or die("Techincal Error");    

fpassthru($file);
        
?>

How to delete multiple record in database using php language

Delete Multiple Record

<?php session_start();

extract($_GET);

$link = mysql_connect("localhost","root","");

mysql_select_db("converter",$link);

$q="delete from multiple where id=".$id;

mysql_query($q,$link);

header("location:itop.php");

//$_SESSION['del_er']['dd'] = mysql_affected_rows()." Video Sub-category Deleted";
?>

Featured post

what is ajax?how to create ajax with php code

Ajax Introduction -  એજેક્સ નો ઉપીયોગ કરી ને તમે પેજ લોડ કાર્ય વિના બધી માહિતી મેળવી શકો.એજેક્સ થી તમે કોઈ પણ ડેટા ઝડપ થી મેળવી શકો છો...