File siz
2B Views/te This website ‘codingcage' would like to send you
2 Push Notifications
25
32 |
41
42 |
43 |
44 |
‘ >
style.css
and last but not the least stylesheet that
makes beautify all the pages.
wavaurkune
10
11
G@charset “utf-8";
/* CSS Document */
{
padding: 0;
margin:@;
+
body
{
background: #fFF;
hiphwun codngcage.cer/2014/t2fle-upload-ard-viow-wih-php-and-mysa. Mim!
amtaai017
12
13
14
15
16
7
18
19
28
21
22
23
24
25
26
7
28
29
30
31
32
33
35
36
7
38
39
4.
43
45
47
How File Upload nd View wih PHP and MySQL Cong Cage
font-family :Gec
This website ‘co
text-align:cent \gcage' would like to send you
} Push Notifications
theader
{ powered by PushEngese Naht
background: #60:
width: 100%;
height :5@px;
color: #FFF;
font-size: 36px;
font-family:Verdana, Geneva,
margin-top:
}
#body table
{
margin:@ auto;
position:relative;
bottom: 5epx;
+
table td,th
{
padding: 2px;
border: solid #9a8b@ 1px;
border-collapse: collapse;
>
#footer
{
text-align:center;
position: absolute;
left:0;
right:@5
margin:@ auto;
bot tom: S@px;
}
That's it guys, please don't forget to share
baw codngcage com/2014tafileuploatand view wit-php-and-mys Hil
soraai017 How to File Upload and View with PHP and MySQL | Coting Cage
this tutorial.
This website ‘codingcage' would like to send you
| Push Notifications
powered by PushEngooe Nah!
Premium SSIS Upload, Insert, Simple File Uploading User R
Components Update, Delete an... With PHP Login s
rgswaySot codngcage.com coaingeage.com cedingcage.
Delete Uploaded Files Multiple Insert, Login Registration Simple
from Folder using... _ Update, Delete... with Email... Update
codngcage.com cosngcagecom coringcege.com codingcage.
Like This Post? Please share!
Cows)
[en (2
Microsoft SQL Server Perl Tutorial Pt
basic Perl tutorial Visual Studio Training
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! weaai017 How to File Upload and View with PHP and MySQL | Coting Cage
. This website ‘codingcage' would like to send you
Subscribe Throu Push Notifications
And Get Free U
ore by Pusha Nah! [_imeool
Enter your email
You May Also Like.
* Load Data on Drop Down Selection
using PHP MySQL and Ajax
= How to Send HTML Format eMails in
PHP using PHPMailer
* Upload, insert, Update, Delete an Image
using PHP MySQL
* AutoComplete Search with Href Link
[PHP MySQL - Remote DataSource
Example]
= SweetAlert2 - Working with Nice Alert's
* Bootstrap Modal with Dynamic MySQL
Data using Ajax & PHP
* Quick & Easy Form Validation Example
with Parsley,js
= Delete Rows from MySQL with Bootstrap
Confirm Modal
* Ajax Bootstrap Signup Form with jQuery
PHP and MySQL
= Designing Bootstrap Signup Form with
JQuery Validation
phn caingcage.com/2014/12fle-uplaad-anc-view-wih-php-and-myed.niml vnaai017 How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘codingcage' would like to send you
Push Notifications
236 Comme
powered by PushEngooe Nah!
ANONYMOUS
1/06/2015 4:59 PM
SS
very nice script with design.
thank you,
Repl
OLAWOLE FAMAKIN
2/04/2015 3:56 PM
hello, nice script, how do we increase the
upload limit
Repl
PRADEEP KHODKE
2105/2015 9:22 PM
hi olawole
thanx for visiting....
search for ‘upload_max filesize’ in
‘php.in' file and change it's value as
you'r need, by default it's 2M
refer this :
http://cleartuts.blogspot.in/2014/12/
simple-file-uploading-with-php.html
ANONYMOUS
\ 412012015 5:04 PM
\
nice dude
Reply
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
symaai017
How to File Upload and View with PHP and MySQL | Coting Cage
This web:
ANONYMOUS,
4/08/2015 4:06 PM
= Push Notifications
thanx man.
Repl powered by PushEngooe
TOM
4/23/2015 2:25 AM
Hi,
Thanks for this!
How could | make it so it doesn't error if
there was no file uploaded? | have added this
to an existing form and sometimes the file
will intentionally be blank.
Thanks,
Repl
VIKRAM PATEL
6/01/2015 5:41 PM
thanks Man you good job and helpfull Me
Reply
ANONYMOUS
6/07/2015 9:06 PM,
thanks man you solve my problem thanks
agein ad again
e FIKRI SHINODA.
6/11/2018 11:41 PM.
Ne
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
wntaai017 How to File Upload and View with PHP and MySQL | Coting Cage
thanks, nice script. how «
description and date
This website ‘co
Push Notifications
\gcage' would like to send you
Repl
Nah!
powered by PushEngooe
PRADEEP I.
6712/2015 5:55 PM
create new two fields in your table
for description and date, and make
change in INSERT Query
as below
$sql="INSERT INTO
tb|_uploadstfile,type,size,description,
date)
VALUES(‘$final_file''Sfile_type’,'Snew
_size','$desc''$date’);
Reply
ART ANONYMOUS
SS
how do size image
Repl
PRADEEP KHODKE
6/20/2015 10:50 AM
Did you mean Resize ?
Nl post it soon...
Reply
ANONYMOUS
Ly 892212015 3:30PM
finally a really helpfull tutorial ! well done
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
astThis web:
Push Notifications
INAYAT ALI JAN
7104/2015 11:31 AM
Nice post.. For more inforr,
uploading and file handling visi this link.
powered by PushEngooe
http://mww.webtutorials55, blogspot.com
Repl
SUSHREE MISHRA
7/0/2015 8:33 AM
It's a good post.But can you tell me how to
upload and insert in MySQL database if there
are 3 files(image file,text file,and word file) ?
& SUSHREE MISHRA
0720
WE? 7072015 85am
It's a good post.But can you tell me how to
upload and insert into MySQL database at a
time , if there are 3 files(image file,text
file,word file) ?
PRADEEP KHODKE
7111/2018 6:50 PM
Hi Sushree:)
You want to upload multiple files at
a time, I have to post a complete
tutorial on it soon, till then try
googling about multiple file
uploading
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
How to File Upload and View with PHP and MySQL | Coting Cage
srtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Reply
oO ROSHAN PADOLE
RUBY rr2015 3330
Nah!
You may try this as well mz "*s's! bY PehFaasae
you
This website ‘co
Push Notifications
\gcage' would like to send you
http://weinformer.blogspot.in/2015/07/file-
upload-and-view-with-php-and-mysql.htm!
SAKET
7212015 7.07 PM
Can you post some tutorial to prevent sql
injection with php oop and PDO
Reply
PRADEEP KHODKE
7/14/2015 11:05 PM
OK III Post it Soon :)
Reply
© SUNNY SINGH
7N2I2015 9:42 PM
WH
How | could upload data categorywise? i.e. if
have 3 categories and want to upload
different files in different categories.
Reply
PRADEEP KHODKE
7114/2015 1053 PM
Hi Sunny)
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
winaai017
How to File Upload and View with PHP and MySQL | Coting Cage
create select box to
This website ‘co
and load category
the select box and <
a value in option €
box then alter UpIO, jomres ty Leheaaene
category id as a
uploading file category and then
make some change in insert query
Reply
JAMES KENT
7/5/2015 5:15 PM
Say | already had a mysql row without an
upload, how would | amend my data with the
upload?
WAJID ALI
7/19/2015 6:07 PM.
hey bro i m getting this error how to slove
this.
Warning
move_uploaded_file(uploads/37261-Waseem
01 jpg): failed to open stream: No such file or
directory in
C:\xampp\htdocs\clearupload\upload.php on
line 11
Warning: move_uploaded file(); Unable to
move — 'C:\xampp\tmp\php14AD.tmp’ to
‘uploads/37261-Waseem —O1jpg’—in
C:\xampp\htdocs\clearupload\upload.php on
line 11
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
Push Notifications
\gcage' would like to send you
Nah!
samtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
This web:
Push Notifications
@ PRADEEP |
7/21/2015 2:4 Nah!
powered by PushEngooe
Warning Says Nc
directory so check if directory/folder
is there or not
Reply
WAJID ALI
A 7119/2015 6:19 PM
you have just given the link view to view the
file .. what i f user upload his image and it will
shown to him on the same page not going to
other or something like this.
all is want user upload pic and this is should
be displayed to his index page where he has
uploaded the image
PRADEEP KHODKE
7121/2015 2:52 PM
Print Image name from MySQL
Database into " " element
something like this
Reply
HTMLCSSPHPTUTORIAL.
7/31/2015 11:21 AM
Pradeep your tutorial is indeed very nice, you
not only upload file but also store in the DB
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
sgtaai017
How to File Upload and View with PHP and MySQL | Coting Cage
which is very good, but i r
you move_uploaded file yo!
extension
move_uploaded_file($file_loc
€) and this is working fine f¢ pomred ty Peheaaee
move_uploaded file without,
is uploaded without extension so file is not
able to view, can you please tell me what is
that? i also wrote tutorial about it but i keep
extension also. please check here
https://htmlcssphptutorial. wordpress.com/2
015/07/31/upload-file-using-php-and-save-in-
folders
Rep)
PRADEEP KHODKE
8/16/2015 12:11 AM
yes | missed that part in this tutorial,
well i just want to show users that
how to upload files in mysql
and your tutorial is also very nice ...
Reply
© BINOD RANABHAT
773112015 9:27 PM
Ss
Sir i have gone through your codes its really
amazing and helpful.So now i want to upload
multiple images at once to database and
upload folder and also multiple delete at
once to delete them using OOP. So i want
help from you...
PCBURNER
QJ searais 01 om
hiphwun codngcage.cer/2014/t2fle-upload-ard-viow-wit-php-and-mysa. Mim!
This web:
Push Notifications
‘codingcage’ would
Nah!
aintaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Thanks for this tutorial. | w This website ‘co
two more components to Push Notifications
prevent duplicate file uploa:
include the date when the fi
and have it displayed on the petty mutase
PRADEEP KHODKE
8/16/2015 9:14 AM
~
to prevent duplicate file upload you
can use following function
if (file_exists($_FILES['file"}["name")))
{
echo "Sorry, file already exists.";
}
to add date
Alter "tbluploads" table and add
new field as "uploaded_date" with
"CURRENT_TIMESTAMP"
or select database then run
following sql code _inside
phpMyAdmin
ALTER TABLE “tbluploads’ ADD
“uploaded_ date’ TIMESTAMP NOT
NULL DEFAULT
CURRENT_TIMESTAMP ;
or you can use
date(y.
); function ,
just add this date function in sql
insert query current date will be
added.
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
aunaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Reply
@ PCBURNER
QJ 21052015 32000
I'm getting errors when uplc
| want to use the date
uploaded, What am I missing? Here's my
code -
This website ‘co
Push Notifications
\gcage' would like to send you
Nah!
powered by PushEngooe
$file_date = $ FILES[‘file')['date;
$folder="uploads/";
J new file size in KB
$new_size = $file_size/1024;
// new file size in KB
// make file name in lower case
$new_file_name = strtolower($file);
// make file name in lower case
$fina|_file=str_replace(’',~,$new_file_name);
if(nove_uploaded file($file_loc,$folder.sfinal
file))
i
‘$sal="INSERT INTO
tbl_uploadstfile,type,size,date)
VALUES('$final_file’$file_type’,'Snew_size’$fi
le_datey’;
PRADEEP KHODKE
$file_date = $_FILES['file']['date’]; this
is not file type
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
aanaai017 How to File Upload and View with PHP and MySQL | Coting Cage
use this
date(y.
This website ‘co
Push Notifications
PCBURNET
se by Pua Nah!
9/18/2015 3:1 Pome by Peshoageae
How do | change this so I have the
day,month, and then the year?
@ PRADEEP KHODKE
9/19/2015 11:14 AM
we
\gcage' would like to send you
".d);
use this $file_date
date(d."/".m."/".Y);
Reply
@ MARC
MJ 30522015 400m
Hi Pradeep, Thanks for the awesome tutorial
and scripts! it worked first time i tried it.
Just a quick question, how can | filter the
upload files that are coming in? ex. only
images and pdf can be uploaded.
Thanks!
PRADEEP KHODKE
8/16/2015 12:26 AM
to upload only images and pdf files,
you have to check file extensions to
be uploaded, use certain file types
like jpg, png, pdf...
use : $FILES[field_name'l[type'] to
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
2aaai017 How to File Upload and View with PHP and MySQL | Coting Cage
check file extens
This web:
condition to upload ‘codingcage’ would like to send you
Push Notifications
Reply
Nah!
powered by PushEngooe
BRUCE
8/08/2015 5:43 PM
great script Pradeep, but how to verify
uploaded files are not malicious. | want users
to upload pdf files and diplay them as
thumbnails for other users to open or
download, thanks
Reply
@ BRUCE
8/08/2015 5:45 PM
ww
Great script Pradeep, but how can you verify
that the uploaded files are not malicious
(virus etc). | want users to upload.pdf files
and have them displayed as thumbnails for
users to open and/or download,
Reply
@ PRADEEP KHODKE
8/15/2015 11:42 PM
wy
as you want to upload only pdf files,
for that check files extension before
uploading file ...
Reply
BRUCE
3/08/2015 8:54 PM
Hi Pradeep, For some reason the file is not
being inserted into the table. | have checked
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
the mysql console and th
This website ‘co
table is there but the table is
Push Notifications
Reply
powered by PushEngooe
PRADEEP I
8/15/2015 11:45 PM
check mysql insert query, and try to
print (echo) sql insert query like
"echo $sql”
BRUCE
NS
Thanks Pradeep, looking forward to
the download script ;)
@ PRADEEP KHODKE
Nagy 8720/2015 11.05 em
we
HI Bruce
Iwill post a file downloading tutorial
soon:)
Reply
GANIYU OPEYEMI
8/14/2015 7:43 PM
ww
thanx good work
Reply
g H4xG33K
01
WF snisr0152270
Thanks for the script, it is great. I'm just
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
asmaai017 How to File Upload and View with PHP and MySQL | Coting Cage
having one problem: When
This website ‘co
Push Notifications
just get a blank screen, no re rgcage’ would like to send you
and the file is not moved ir
folder or entered into the da
powered by PushEngooe Nah!
| only modified the databa
with
Iidatabase credentials
define(DBHOST','x);
define(DBUSER',’);
define(DBPASS','x);
define((DBNAME",'x");
$db = new
PDO("mysql:host=",DBHOST.";port=3306;dbn,
ame=",DBNAME, DBUSER, DBPASS);
$db->setAttribute(PDO::ATTR_ERRMODE,
PDO::ERRMODE_EXCEPTION);
Thanks so much!
Repl
PRADEEP KHODKE
8/20/2015 1027 PM
Hi...
as you modified only database
connection code then you need to
use "$db" variable with prepare and
execute to work this script using
PDO
ex
$stmt = Sdb->prepare(query);
$stmt->execute()
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! aanaai017
How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘co
Push Notifications
hope this helps.
Reply powered by PushEngooe
@ AULIA
8/18/2015 5:44 AM
ww
thanks for the tutorial pradeep, this is what i
searching for.
but can you tell me where the location of a
script that displays pdf, doc, etc 7?
PRADEEP KHODKE
8/20/2015 10:38 PM
Hi Aulia...
there is only one folder i have
created here as "uploads" which
stores all the types of file, and i have
given only link of uploaded file... pdf
can be displays on browser by
clicking on the uploaded file link on
view.php...
Reply
MUKHTAR NAQVI
Go 015 7:
WH 2182015 70200
Warning: mysq|_fetch_array() expects
parameter 1 to be resource, boolean given in
C:\campp\htdocs\projects\upload.php on
line 48
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah! im
ainaai017 How to File Upload and View with PHP and MySQL | Coting Cage
44 mysql_connect($dbhost.§
or die(‘cannot connect to the This website ‘coy
45 mysql_select db(sc Push Notifications
die(‘database selection prob
46 $sqi="SELECT * FROM upl
47 $result_set=mysq|_query(
43
while($row=mysql_fetch_array(Sresult_set))
powered by PushEngooe
please help me out
PRADEEP KHODKE
8/20/2015 11:00 PM
this error might be on “view.php"
$sql="SELECT * FROM uploads";
$result_set=mysql_query($sql);
while($row=mysq|_fetch_array($resu
It set)
this code is on view.php and make
sure that you have changed table
name yours is uploads and in this
script i have used tbl_uploads.
JAYESH MANOHARAN
10/27/2015 1:02 PM
hi i have configured the script to my
existing theme how to upload it
from my website
PRADEEP KHODKE
10/31/2015 6:35 PM
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
artaai017
How to File Upload and View with PHP and MySQL | Coting Cage
hello jayesh,
uploading is same
online website , |
easily just put thi
website With powied oy Panexesoe
configurations and
Reply
@ BRUCE
8/21/2015 5:17 PM
ww
Hi Pradeep,
Your code is working perfectly, however I'm
trying to restrict files from uploading if they
do not have the defined extensions and file
size. | have played about with alert boxes
which advise the client that only certain files
can be uploaded but when these boxes are
dosed the script continues to upload and
insert the files. I've tried exit() and the die()
but just get a blank page resu
way to stop the script and exit back to the
index.php and have the client retry?
Is there a
Reply
@ DOSSO ZOUMANA
8/21/2015 10:33 PM
\ 4
Why for your db engine are you Myisam
engine instead of Innodb?
@ PCBURNER
8/25/2015 4:37 AM
ww
Pradeep thanks for taking the time to do
these tut's. | have another question. When
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
This web:
Push Notifications
artaai017
uploading files when I rei
amount of files to be disp
page | would like another
created how do | go about d
How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘co
Push Notifications
powered by PushEngooe
PRADEEP KHODKE
9/03/2015 11:14 PM
you must paginate your data ... here
is the link for pagination tutorials
http://Awww.codingcage.com/search/|
abel/Pagination
Reply
@ WEITO FM.
9/13/2015 3:13 PM
ww
Pradeep,
Getting error: ‘video can't be played because
the file is corrupt’ on .mp3 fl
Reply
WEITO FM
9/13/2015 6:03 PM
Ihave also tried adding
11 Check if file already exists
if (fil
ce
echo "Sorry, file already exis
,
le view
»_exists($_FILES["file"]["name"}))
£5."
but seems to have no effect. same file
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
sortaai017
How to File Upload and View with PHP and MySQL | Coting Cage
continues to be added. | r
This website ‘co
function also. please help. TI
Push Notifications
powered by PushEngooe
PRADEEP I
9/15/2015 7:03 PM.
HI Weito
try following
$folder = "uploads/";
Stargetfile = — $folder
$_FILES["fileToUpload"]['name"];
if (file_exists($target_file))
{
echo "Sorry, file already exists.";
y
it works...
TAUSEEF ANWAR
11/09/2015 5:10 PM
not working getting erorr file
uploaded successfully in popup and
in page showing file already exist
and showing eror undefined index
line no 10
PRADEEP KHODKE
11/11/2015 5:08 PM.
hell tauseef, please check your code,
there's must be something wrong in
your code :)
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
auntaai017
©
Pradeep
How to File Upload and View with PHP and MySQL | Coting Cage
Reply
This website ‘co
UNKNOWN Push Notifications
9/13/2015 7:20 PM
Nah!
powered by PushEngooe
l've been trying to upload larger files (500mb)
lve made the necessary changes in the
php.ini but the upload doesnt seem to be
working. When | try to upload the page just,
stops on the upload.php page. No warnings
or failur
ideas?
notice or anything like that... any
PRADEEP KHODKE
9/24/2015 11:54 PM
hi there.,
again open "php.ini" file and search
for the following
post_max_size = 3M
upload_max filesize = 64M
max file_uploads = 20
and change the by default values as
your need
hope it helps...
Reply
FRED SITTARD
919712015 6:30 PM,
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
wrtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Hi This web:
Push Notifications
Love this script!
!
One thing,, is it posible to aj somed by Pesnenasoe Nah!
so this text store in the dati
itwith image
Thanks
PRADEEP KHODKE
9/19/2015 11:22. AM
ww
Hi Fred,
yes it's possible to store text field,
just alter mysql table and add text
field and change mysql insert and
select query
Reply
NEMCHAND DAS
q 9718/2015 9:54AM
aS
file uploaded successfully but i am not able
to view the uploaded file. it shows no object
found
Reply
PRADEEP KHODKE
9/19/2015 11:35 AM
Hi Nemchand,
if file uploaded successfully then
how you are not able to view the file,
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
syrtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
check your codi
something wrong ir
modified this scrip
working script,
This web:
‘codingcage’ would like to send you
Push Notifications
powered by Puatengege Nah! im
if there is error ir
show me the error.
KARTHI Kj
0709/2015 1:22 AM
the same error for me also!!!
@ UZZAL MONDAL
0709/2015 11:11 AM
ww
file uploaded successfully but i am
not able to view the uploaded file. it
shows no object found
PRADEEP KHODKE
10/10/2015 11:48 AM
if there is error in the code then
show me the error...
A LOKESHWAR JYOTISHA
NAY) svosv2ore 1:23 om
the code is working awesome i am
able to see the file are using xampp
which version msql or mysqli
Reply
RAHUL JAWALGE
9119/2015 9:13 AM
No
This comment has been removed by the
author,
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
Reply
This website ‘co
Push Notifications
@ PRADEEP I
Wy srspoisn Nah!
powered by PushEngooe
\gcage' would like to send you
Hi Rahul,
it’s simple, as i showed uploaded
files on ‘view.php" in the table
format, do the same just copy code
and paste in "index.php" below
uploading form
hope it helps :)
Reply
RAHUL JAWALGE
9/19/2015 12:09 PM.
QS
:) thanks pradeep .. it works great ... another
thing is that i want to upload multiple files on
the same row of the database with only one
upload button .. can you please suggest me
do that? thanks a lot bro ..
PRADEEP KHODKE
9125/2015 12:00 AM
multiple file uploads , i will post a
tutorial about it soon :)
Reply
WINFRED ADRAH
9/22/2015 7:36 PM
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
Hi, i followed the tutorial thr This website ‘co
| increased the upload_max Push Notifications
1024M, when i try to uplo
small size, it uploads with
When i try to upload a file poms by rshtaene
example a file with the size
error "Warning: POST Content-Length of
18921011 bytes exceeds the limit of 8388608
bytes in Unknown on line 0" and i cant find
anything on it when i Google it. Please help
me out. It gives the same kind of error when i
try the _ simple-file-uploading-with-php
tutorial too. Thanks.
PRADEEP KHODKE
91/24/2015 11:58 PM
Hi Winfred,
open "php.ini" file and search
following things
post_max_size = 3M
upload_max_filesize = 64M
max file_uploads = 20
and change the by default values as
your need.
Reply
@ UNKNOWN
9/22/2015 8:36 PM.
4
Hi,
Thanks for the tutorial. | downloaded the
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
srtaai017
How to File Upload and View with PHP and MySQL | Coting Cage
script and | haven't change
this error when | try to upl
am | missing?
This website ‘codingcage' would like to send you
Push Notifications
Warning: ‘powered by PushEngage Nah!
move_uploaded file(upload:
3d-glass-green-effect,jpg): failed to open
stream: Permission denied in
/Users/numb/Sites/uppladdning/upload.php
on line 22
Warning: move_uploaded file(): Unable to
move — ‘/private/var/tmp/phpP2FqRW' — to
‘uploads/94829-77190-3d-glass-green-
effect jpg’ in
/Users/numb/Sites/uppladdning/upload.php
on line 22
Thanks for the help!
NDevotte0o7
Repl
DEVOTEEOO7
912212015 8:37 PM
Hi,
Thanks for the tutorial. | downloaded the
script and | haven't changed anything. | get
this error when | try to upload a JPG. What
am | missing?
Warning
move_uploaded_file(uploads/94829-77190-
3d-glass-green-effect.jpg): failed to open
stream: Permission denied in
/Users/numb/Sites/uppladdning/upload.php
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
aunaai017 How to File Upload and View with PHP and MySQL | Coting Cage
on line 22
This website ‘co
Push Notifications
\gcage' would like to send you
Warning: move_uploaded_{
move — ‘/private/var/tmp/p,
‘uploads/94829-77190-3d-Bi pomred ty Peshtaneoe Nah!
effect.jpg’
/Users/numb/Sites/uppladdning/upload.php
on line 22
Thanks for the help!
//Devotte0o7
PRADEEP KHODKE
91/24/2015 11:48 PM
Hi there,
"failed to open stream" and "Unable
to move", this error clearly shows
that there is folder name are
mismatched or does not exist, so
check folder name in your file.
Reply
ROSHAN DAVID
9/24/2015 9:35 PM
hey i cant view the uploaded files the table is
empty
Reply
PRADEEP KHODKE
9/24/2015 11:51 PM
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
samtaai017
How to File Upload and View with PHP and MySQL | Coting Cage
hi roshan,
This web:
‘codingcage’ would
Push Notifications
there's must be so
modified this scr
Nah!
mysql queries and pseied by rusntngaze
is working script ...
ROSHAN DAVID
9/25/2015 5:01 PM.
got it right on the second time
thanks :D and can you tell me how
to change this in oder to upload files
in to several tables like for example
there are 3 tables name
2010,2011,2012, user has to select a
table and upload the file to that
specific tabel?
PRADEEP KHODKE
9125/2015 11:00 PM
Hi Roshan ,
if user has to select table to upload
files in different tables for that you
have to put select box and fill it's
options with table name like below
and take a variable for table name
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
sataai017 How to File Upload and View with PHP and MySQL | Coting Cage
from above selec
$_POST['tbl_name'},
This website ‘codingcage' would like to send you
Push Notifications
after it put the $tbl
query like this powered by PushEngese Nah!
INSERT INTO $tbi(file,type,size)
VALUES('$file''Sfile_type’,'Sfile_size’)"
if all uploading tables has same
fields then it will work
hope it helps :)
Reply
ROSHAN DAVID
getting this now :3
Deprecated: mysqlconnect(): The mysql!
extension is deprecated and will be removed
in the future: use mysqli or PDO instead in
CAwamp\www\dbconnect.php on line 2
PRADEEP KHODKE
9725/2015 11:16 PM
yes it's because we have MySQL
extension in this tutorial i
recommend you to use PDO or
MySQL
PDO.
http://www. codingcage.com/search/|
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
ortaai017
How to File Upload and View with PHP and MySQL | Coting Cage
abel/PDO
MySQL
http://www.codinge
abel/MySQLi
owed by PushEngne
or if you want to us
put the following code in
“dbconfig.phj
in the first line
error_reporting( EAL &
~£_DEPRECATED & ~E_NOTICE);
ROSHAN DAVID
9/26/2015 2:09 PM
thanks it was very helpfull. (y)
PRADEEP KHODKE
WH 22622015215 -m
you're welcome roshan
keep visiting :)
ROSHAN DAVID
9/26/2015 3:34 PM.
my last question xD i upload a video
to this database and from the view
page how can i redirect to a
seperate page by clicking on the
video name or a new view button
where i can watch it or simply in
other words how can i make it open
and view in another page? Thanks :)
PRADEEP KHODKE
9/29/2015 5:35 PM.
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
This website ‘co
Push Notifications
\gcage' would like to send you
Nah! im
auraai017 How to File Upload and View with PHP and MySQL | Coting Cage
hello roshan,
it’s quite simple, fre
displayed all. the
within anchor tag, |i
<2 href="upload pewetty muraese
$row['file'] ?>" targ.
file
just replace hrefs="" value and with
page name with QueryString and in
querystring define file id, then using
query string fetch the file using
$_GETQ function
"
target="_blank">view file
Reply
HIMANSHU RANJAN
10/01/2015 9:32 AM
sir, can you explain.
$final_file=str_replace(’',-,$new_file_name);
if(move_uploaded_file($file_tmp,$folder.$fina
Lfile))
Reply
PRADEEP KHODKE
10/02/2015 11:06 AM
hello himanshu,
here str_replace() function replace
all the unwanted spaces with -
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
This website ‘co
Push Notifications
\gcage' would like to send you
Nah!
aanaai017 How to File Upload and View with PHP and MySQL | Coting Cage
(hyphen) and mov
This website ‘codingcage' would like to send you
function moves t
specified folder. Push Notifications
Nah!
Reply powered by PushEngooe
ADEYEYE GEORGE
G 05/2015 7:35 PM
SA sovosrars7a5
nice script... but when i tried to upload
image it says error while uploading file...
please help me out
Repl
PRADEEP KHODKE
10/05/2015 10:20 PM
hello adeyeye, please check if you
have made some changes in this
script.
Reply
T
@ 10/09/2015 10:07 PM
Ss
This is awesome!!!
| was wondering if there's a way to give the
file a title when you upload so that when you
view the HTML table it shows the title name
instead of the file narne? Example "Title of
File” instead of filename.pdf
Repl
PRADEEP KHODKE
10/10/2015 11:53AM
hello there, yes you can give title for
file and you can also show file title in
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! asinaai017
How to File Upload and View with PHP and MySQL | Coting Cage
HTML table, just alt
new field as file_title
changes in insert qu
This website ‘co
Push Notifications
Reply powered by PushEngooe
@ RISHI
0/15/2015 3:54 PM.
ww
Hey thanks for this tutorial... really works
but there is a problem with me......file is
uploading in a local folder but not in mysql
database.....tbl_uploads show empty and in
view.php it shows nothing in table..
Repl
PRADEEP KHODKE
% 10/15/2015 11:19 PM
hello rishi,
please check MySQL Insert Query in
“upload.php"
INSERT INTO
tbl_uploads(file,type,size)
VALUES($file'’'Sfile_type’,'$file_size’);
Reply
RISHI
10/16/2015 3:03 PM
Itwas
if(move_uploaded_file(Sfile_loc,$folder.Sfinal
file))
{
$sql="INSERT INTO tb|_uploads(file,type,size)
VALUES('$final_file’,'$file_type’,'$new_size’)";
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
aaaai017
How to File Upload and View with PHP and MySQL | Coting Cage
mysqLquery($sql);
>
This website ‘codingcage' would like to send you
Push Notifications
now I've change it to yours a
‘powered by PushEngage Nah!
if(move_uploaded file($file_|
_file))
i
$sal="INSERT INTO tbl_uploads(file,type,size)
VALUES('Sfile''$file_type’,'$file_size’);";
still uploading in local folder uploads but
table is empty in mysql...
please help me out
e@ RISHI
1/18/2015 11:49 PM
ww
hey thanks | got it done !!!
Reply
PRADEEP KHODKE
10/20/2015 7:47 PM
hello rishi
glad you solved it :)
Reply
Yt, BRIN ARORA
10/20/2015 9:05 PM
QY
how can i show particular image by its id
Reply
PRADEEP KHODKE
10/21/2015 5:18 PM
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
asaai017 How to File Upload and View with PHP and MySQL | Coting Cage
@ hello brin, This website 'codingcage' would like to send you
Push Notifications
it’s quite
viewphp as i di
!
uploaded files withi 2m by Pusheage Nah!
this
‘ blank">view
just replace href
page name with QueryString and in
querystring define file id, then using
query string fetch the file using
$_GETD function
value and with
view file
hope this helps :)
Reply
GENERAL MANAGER
10/28/2015 737 PM
Thanks for sharing this great article ..This is
very helpful,
"plueapplecourses"
Reply
@ UNKNOWN
11/03/2015 3:45 PM
ws
Nice Script
Reply
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
aaaai017
Hom to Fle Upload an View with PHP andMySQl | Cote Cage
© PROWINE This website ‘codingcage’ would like to send you
11/10/2015 8:05 PM
ww Push Notifications
Hello, first of all thanks for
like a charrn, is there any ché Nah!
share the code for updat "="
uploaded? if you can | would be really
grateful)
Reply
PRADEEP KHODKE
hello prowine, it's easy to update
uploaded file, just execute update
query for mysql table and within this
remove uploaded file using unlink)
function and, set new file name in
update query. hope you got it :)
PROWINE
11/11/2015 8:33 PM
Just a little bit actually im kinda
newbie with mysiq and php, but im
going to do my research to learn
new stuff about this, thanks you
have a great day! :)
PRADEEP KHODKE
% 11/13/2015 11:10 AM
hello prowine, thanks for visiting
and dropping comment,
keep learning and keep visiting :)
Reply
MIRA NYALONG
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
anaai017 How to File Upload and View with PHP and MySQL | Coting Cage
11/14/2015 4:06 PM
This website ‘codingcage' would like to send you
Hye, when i co)
¥ 1 Push Notifications
But,the output is bl
sik Nah!
powered by PushEngooe
@ PRADEEP KHODKE
11/15/2015 6:07 PM
ww
hi mira, why are you copying the
code, i have given the file for
download, so download it and try
Reply
oO vs
11/14/2015 6:19 PM
\ 4
Hello Pradeep, | want to restrict the file type
to pdf. so how can i modify the above code
to suit the requirement?
@ PRADEEP KHODKE
Yay tsraonseatem
Hello there, if you want to restrict
pdf files then write code for pdf
extension and if the file is pdf
display error message
$_FILES[filepdf][ type'] ~
“application/pdf”
TEST
11/15/2015 9:08 PM
Dear Pradeep, Thanks for your quick
reply. since i am new to coding can
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
aartaai017
How to File Upload and View with PHP and MySQL | Coting Cage
you give me the
This web:
where should i inse
Push Notifications
code.
Reply powered by PushEngooe
LYSERG
Hi, how to replace the "view" with download,
so it will download instead of view?
Repl
PRADEEP KHODKE
11/29/2015 11:15 AM
ws
hello lyserg, here is quick option you
can use, just add new attribute as
download. in view link
Downl
oad
Reply
O BLOG4BUCKS
KJ sinrroiss200m
Ya know, | got really excited when I read the
title of the post, and the opening paragraph
furthered that excitement. Why? Because |
actually need the solution this article CLAIMS
it will give (sadly it failed at delivery).
This article does NOT teach one how to do as
the opening line claims, "Store uploaded file
into the MySQL Database". Rather it teaches
one how to upload a file to the server and
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
Nah!
oiraai017
How to File Upload and View with PHP and MySQL | Coting Cage
store the location of that file
+ which is vastly differe
largeblob, one should be ab
the database... not locally
That's what | am trying to 1€ somes ty Peshtngose
have any articles about sto
into the database without local file storage, |
This website ‘co
Push Notifications
really am interested.
TAHA FAROOQUI
11/28/2015 12:33 AM
1
| have a problem in sessions .When | use
session's in query. The file name ($final file)
is not working.Could you please fix it
$sql="INSERT INTO
tracks(file,type,size,user_id)
VALUES('Sfinal_file','$file_type','Snew_size’,".$
_SESSIONTid'
PRADEEP KHODKE
Hello Taha, please check that how
it's not working, check your mysql
table with the table fields in your
insert query, try to print $sql query,
you will get an idea what's
happening in your sql query.
Reply
UNKNOWN
11/29/2015 9:10 AM
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah! im
sortaai017 How to File Upload and View with PHP and MySQL | Coting Cage
how do i store the data in de
Reply Push Notifications
@ NORIZAL RIZAL pomred by Pshicagaae
SS
how i do it for store the file to
phpmyadmin..please help me
Reply
PRADEEP KHODKE
11/28/2015 11:05 AM
Hello Norizal, this tutorial is already
with MySQL database(PHPMyAdmin)
and the file name is storing in
database and associated file moved
in folder :)
SERIES LIMITED
1112/2016 7:05 PM
I need your help to be able to
download files stored in sql
database. row location is where the
dumped uploaded file is. Thanks.
Reply
JOY ESPARCIA
12/10/2015 8:42 PM
i still get an error in uploading a file in
whatever file i upload... please help i copy it
correctly but still doesn’t run right, thankyou
Reply
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
This website ‘codingcage' would like to send you
suaai017
How to File Upload and View with PHP and MySQL | Coting Cage
a ERICKA V This website ‘co
1977201610
Push Notifications
We have the same
should we do sir? W
powered by PushEngooe
ERICKA V
Sa 11772016 10:24 PM
ww
Mine is working now. | just forgot to
create a folder.
Reply
ADEYEMO DAMILOLA SAMUEL
12/17/2015 5:24 AM
worever
Repl
@ UNKNOWN
12/26/2015 11:31 PM
ww
Hi,i am getting this error... i have increase the
size in php.ini but still??? it happen when
upload video or audio of bigger size??? by the
way nice tutorial
Warning: POST Content-Length of 8627491
bytes exceeds the limit of 8388608 bytes in
Unknown on line 0
Reply
UNKNOWN
12/26/2015 11:32 PM
Hi,i am getting this error... | have increase the
size in php.ini but still72? it happen when
upload video or audio of bigger size??? by the
way nice tutorial
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah!
srtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Warning: POST Content-Ler
bytes exceeds the limit of §
Unknown on line 0
This website ‘co
Push Notifications
\gcage' would like to send you
Repl
Nah!
powered by PushEngooe
ABDULLAH HASHMI
hi i am getting this error "Warning: POST
Content-Length of 48119840 bytes exceeds
the limit of 8388608 bytes in Unknown on
line 0” i have increase the size from php.ini
but still?? any help
& ASHOK KUMAR
sy0s/2016
Ky) vosr2016 1.05 em
shows error like this - > mysql_fetch_array()
expects parameter 1 to be resource boolean
given in C:\xampp\htdocs\check\view.php on
line 30
and no data is inserted in database
PRADEEP KHODKE
1/19/2016 3:15 PM
Hey Ashok, please check your code,
there's must be some error while
inserting or selecting on index and
view page...
Reply
SONA MATO
1/09/2016 5:42. AM.
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
i successfully uplo
cant see it in the tal
This web:
‘codingcage’ would like to send you
©
Push Notifications
Repl
SONA MATO
NJ vosr016 543 am
ww
i successfully upload the file but why i cant
Nah!
powered by PushEngooe
see it in table?
Reply
@ PRADEEP KHODKE
1119/2016 3:10 PM
a
hello sona, check your insert query
try to echo insert query
Reply
JOSH
1109/2016 3:23 PM
ww
please can you modify this so that at a
successful login the users will see a menu
with the following
J.upload document for evaluation 2. check
documents submitted for evaluation 3. check
doc to evaluate 4, check documents you
evaluated
thanks
Reply
MUCHAELI
q 1710/2016 2:44 AM
hi, | can’t download the script on Box, is there
a problem or its just me, because | am able
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
to download all your other s
This website ‘co
Repl Push Notifications
PRADEEP | ‘powered by PushEngage Nah!
angn016 30
Hello Muchaeli, link is updated ,
download it
\gcage' would like to send you
Reply
@ JOSEF ATTARD
1112/2016 9:5
SS
Hi,
am getting an error when trying to upload
files, error saying ‘error while uploading file’
Can you help me out with it please ?
Thanks
Reply
JOSEF ATTARD
111212016 9:53 PM
Hi,
| am getting an error when uploading the file,
error saying ‘error while uploading file’.
Can you help me out please ?
Thanks
Reply
@ JOSEF ATTARD
1/12/2016 10:27 PM
ww
Hi,
| am getting an error, error saying ' error
while uploading file’
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!aai017 How to File Upload and View with PHP and MySQL | Coting Cage
do you know why? can you F
thanks
This website ‘codingcage' would like to send you
Push Notifications
Nah!
pote by Puaheagsoe
PRADEEP I
Hello josef, there's must be some
error with your code, please check,
you can echo or print your insert
query to. —-know_— whats.
inserting(uploading)
Reply
NADIA SHOUKAT
17/2016 4:28 PM
Lam trying to upload mp3 file but it shows
error,
Warning: POST Content-Length of 32995016
bytes exceeds the limit of 8388608 bytes in
Unknown on line 0
Reply
PRADEEP KHODKE
1/19/2016 3:04 PM,
Hi Nadia,
open "php.ini" file and search
following things
post_max_size = 3M
upload_max filesize = 64M
max file_uploads = 20
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! sortazireorr
and change the by
your need...
Reply
ERICKA V
1/17/2016 10:14 PM
Hi sir, | tried doing this but I'm getting an
error whenever | upload a file. It doesn't
state what the error is, it just says "error
while uploading file" Please help sir. Thanks!
powered by PushEngooe
Repl
PRADEEP KHODKE
Hello Ericka, there's must be some
error with your code, please check,
you can echo or print your insert
query to know_—_ whats
inserting(uploading) ..
Reply
KAMAL KRUZE
1/20/2016 1:03 PM
good work dude, thanks for your code
PRADEEP KHODKE
2/07/2016 7:36 PM.
we
thanks kamal, glad you liked it :)
& KAMAL KRUZE
RAF 222010559 m
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
How to File Upload and View with PHP and MySQL | Coting Cage
\gcage' would like to send you
This website ‘co
Push Notifications
Nah! im
srtaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Fine pradeep i wan
files according to u:
This website ‘codingcage' would like to send you
Push Notifications
7 files to max 8 file
above in my sql dp,
:
to use array in up] meter roc Nant) (_imeoot_}
help me?
KAMAL KRUZE
3/07/2016 1:07 PM
Hi pradeep trying to upload 5 files
using five input options and linking
into one submit button but i cant
able to store their values in dtabase ,
can yu show any example or source
code for this ?
MY form would be like this:
student should upload his birth
certificate, then marksheets then his
photo after that he need to click
submit , so that all values should hit
the databases.
Reply
RAGHAVENDRA RAGHAVA
1/22/2016 9:05 AM
Thank you sir After few changes i get it.
| have to upload multiple files in to
database.Can you tell where to be use the
loop
Repl
RAGHAVENDRA RAGHAVA
ww
sir,How can i upload multiple files in this
code.Can you help me plzzz
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! samtThis web:
Push Notifications
RAGHAVENDRA R4
1/23/2016 8:10 AM
powered by PushEngese
SirHow can i upload mult
code.Please,help me
Repl
RAGHAVENDRA RAGHAVA.
1/24/2016 7:38 AM
Sir can u tell me how to insert multiple files
in thiz code,
Pkz,tell me as soon as possible
Reply
UNKNOWN
Hi, everything is working great but my
question is how do | insert a row from my
userstable inte this table. for example | want
to display the username of the user that
have entered a file and also have a page
where a user can view only the files they
have entered. so | want to import the
username from my user table into the
sqiquery.
Repl
AMANDA HERNOW
1/24/2016 6:31 PM
ae
Hi. everything is working great but my
question is how do | insert a row from my
userstable inte this table. for example | want
to display the username of the user that
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
How to File Upload and View with PHP and MySQL | Coting Cage
sataai017 How to File Upload and View with PHP and MySQL | Coting Cage
have entered a file and a
This website ‘co
where a user can view on
have entered. so | want Push Notifications
username from my user
sqiquery. powered by PushEngooe
Repl
AMANDA HERNOW
1/24/2016 6:31 PM
_
Hi. everything is working great but my
question is how do | insert a row from my
userstable inte this table. for example | want
to display the username of the user that
have entered a file and also have a page
where a user can view only the files they
have entered. so | want to import the
username from my user table into the
sqiquery.
Reply
( A@ANAZIOZ APADIQTHE
v 1/25/2016 4:39 AM
4
ERROR
Deprecated: mysql_query():. The mysql
extension is deprecated and will be removed
in the future: use mysqli or PDO instead in
C\wamp\www\file-uploading-with-php-and-
mysqlwiew.php on line 27
ERROR
Warning: mysql_fetch array) expects
parameter 1 to be resource, boolean given in
C\wamp\www\file-uploading-with-php-and-
mysq|view.php on line 28
plz help me i can see the table and i really i
need this to work
Repl
phew codingcage.cer/2014/tfle-upload-and-viow-wih-php-and-mysa. Mim!
\gcage' would like to send you
Nah! im
artaai017
How to File Upload and View with PHP and MySQL | Coting Cage
A LOKESHW This website ‘co
05/2016 11
‘ Push Notifications
use xampp it is wor!
powered by PushEngooe
Reply
‘WOODS CLARK
Fatal error: Uncaught Error: Call to undefined
function mysql_query) in
C:\xampp\htdocs\upload.php:25 Stack trace
#0 {main} thrown in
C:\xampp\htdocs\upload.php on line 25
help please ?
Reply
TUTUNKAMUN
6/23/2016 1237 PM
I have the same problem, did you
happen to find any solution for this?
if you did, could you please share
your solution with me. Thank you.
Reply
VINAY KUMAR
2/09/2016 6:47 PM.
| like this source code : visit my shopping site
that is developed by me. www.byadab.corn
Reply
213131231CSDC
KJ monoiessorm
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
\gcage' would like to send you
Nah! im
ouraai017 How to File Upload and View with PHP and MySQL | Coting Cage
the same code is working
server but when i uploade
after selecting image, when
upload, blank screen comes
This website ‘co
Push Notifications
\gcage' would like to send you
when i debugged it, echo, rvs ty Pesntnaese Nah!
getting displayed before the
if(move_uploaded file($file_loc,$folder.$final
file)
please help
Repl
SELFIE FAILS
SEY
I'm trying to modify upload.php to only allow
videos, can you help as | cant do it! (
Repl
SELFIE FAILS
2/20/2016 3:17 AM
| have made small changes and have now
managed to check for certain file types, do |
need to do anything more
if(Sfile type != "video/mp4" && $file type =
"video/avi" && $file_type != "video/mov" &&
$file type I= "video/3gp" && $file type!
"video/mpeg")
ce
>
alert(Error: Suspicious file or not a valid
video format);
window. location. href="index.php?fail’;
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! enaai017 How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘co
Push Notifications
alert('successfully uploaded! \gcage' would like to send you
window. location.hr
powered by PushEngooe Naht “
index
ONWU GIDEON
2/22/2016 5:53 PM
OQ
nicw script.how can i download
automatically?
Reply
© PRASHANT MAHATO
2729/2016 12:10PM
=
Hello thanks for the code, When i upload pdf
files, it gets into the uploads directory but is
not viewed in the table in view.php. There
are only two image files in the list.
Reply
PRADEEP KHODKE
hello prashant, sorry for the late
reply, did you solved it ? and make
sure that records are properly
inserted into table or not.
Reply
PRASHANT MAHATO
3/17/2016 2:38 PM
It doesnt get stored into the database as
well. What's the problem
Reply
hphwun codngcage.cer/2014/tfle-upload-and-viow-wih-php-and-mysa. Mim!
eataai017
How to File Upload and View with PHP and MySQL | Coting Cage
SHATRUDHAN KUH This website ‘codingcage' would like to send you
3/22/2016 3:03 AM
«
Push Notifications
$file rand(1000,100000
Prame' ‘powered by PushEngage Nah! o
dont know why u had uses Tan
creaating error while viewing page
Reply
SHATRUDHAN KUMAR
ww
$file = rand(1000,100000).".".$ FILEST'file’]
[name'];
Reply
VILMANTAS ADAMONIS
3/23/2016 9:34PM
Fatal error: Uncaught Err¢ all to undefined
function mysql_query) in
C:\xampp\htdocs\upload,php:25
Help please???
KASTHURI SHRAVANKUMAR
4/04/2016 7:08 PM.
Thank USO MUCH s.sssssesenssserennseerennane
Reply
VAIBHAV KIRATKAR
4/13/2016 6:31 PM
| need to download the data instead of
viewing...
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
wartaai017
How to File Upload and View with PHP and MySQL | Coting Cage
Please help me out.
This website ‘codingcage' would like to send you
Repl Push Notifications
4/29/2016 12:02 AM
@ KARAN DEOPURA | paseray ruancaene Nah! im
S
Thanks for the script. its really very useful
Reply
@ SHANKAR GOUNDER
5/11/2016 12:45 PM.
ww
thanks sir its really helpfull
Reply
5/21/2016 7:29 AM
eS NILLANDER GONGALVES ALARCAO
| am not download the file, no erros or
exceptions is show
Reply
IPYANA MWAISEKWA
5/27/2016 7:38 PM
thank you for these best scripts!!
I have a concern, what if i want to upload a
video file and image file on the same page
and save in one directory?
Reply
JENISHAS
6/01/2016
« 5/01/2016 10:26 AM
really very useful for me sir.....go0d job
I have one question , tat is how to upload
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
wartaai017 How to File Upload and View with PHP and MySQL | Coting Cage
only the pdf files?Plz send
This website ‘codingcage' would like to send you
mail jenijenisha92@gmail.co
Push Notifications
Reply
Nah!
pote by Puaheagsoe
PRADEEP F
hi jenisha, sorry for the late reply,
and tupload only pdf files you need
to check uploading files extension,
and give condition that if file is pdf
then proceed to upload otherwise
display message that select only pdf
files, that's it.
Reply
PROFIT
KJ storie se9am
can't upload video, what is the problem
Reply
GAURAV PRATAP
6/12/2016 2:14PM.
hello pradeep ! this is very nice tutorial and
blog. Can You please post a tutorial about
“how to save a file into database table and
how to access that file".
Thanks in advance
Reply
PRADEEP KHODKE
6714/2016 11:50 AM
hi gauray, file is actually saving in
database and how you want to
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim! wartaai017
access your file let r
How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘co
Push Notifications
\gcage' would like to send you
Reply
e UNKNOWN powered by PushEngooe
612212016 12:59 AM
we
when face this problem, what i can do? help
please...
Warning:
move_uploaded_file(uploads/29526-2-
year.png): failed to open stream: No such file
or directory in
‘amp\htdocs\file\upload.php on line 22
ASK RSHMI
612712016 12:12 AM
hey its showing error while uploading files.
What to do 7? i didn't change anything in
code
Reply
ASK RSHMI
6/28/2016 2:12 PM
| need to download the data instead of
viewing,
Please help me out..
Reply
@ MUKESH PATIDAR
6/29/2016
KD sres12016 1055 am
Hi Pradeep how can we edit uploades file
and my file stored in to database
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
ouraai017
Reply
PATEL DHARMESH
6/30/2016 9:50 AM
multiple field in file upload
help
This website ‘co
Push Notifications
powered by PushEngooe
ply
FAHAD AKHTAR
7102/2016 3:38 PM
nice code
UNKNOWN
hello sir,
we were creating a form filling page using
php where we upload the resume and view
it. we got the first part where we could
upload the file but we are not able to
display.we use mysql to store the data/file
uploaded.
Reply
MAHARANI MANI
7104/2016 11:38 AM
hello sir,
we were creating a form filling page using
php where we upload the resume and view
it, we got the first part where we could
upload the file but we are not able to
display.we use mysq| to store the data/file
uploaded.
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
How to File Upload and View with PHP and MySQL | Coting Cage
\gcage' would like to send you
Nah! im
wartaai017
Reply
How to File Upload and View with PHP and MySQL | Coting Cage
This website ‘co
Push Notifications
\gcage' would like to send you
ABHISHEK SHARM/
7108/2016 11:44 AM
Thanks for the tutorial.
| am having one query, if i upload a csv file it
powered by PushEngooe
uploaded successfully but when i view the
csv file it downloads the csv file instead of
showing its data.What to do to get rid of this,
problem ?
Reply
SALMAN
7128/2016 11:11 AM
ww
Hi Pradeep,
How can i upload file without refresh page?
Using with ajax & jquery
Reply
PRADEEP KHODKE
8/01/2016 2:37 PM
hello salman, sorry for the late reply
bro, and i will surely post a tutorial
about image uploading with jQuery
Ajax, keep visiting ...
Reply
© IWAN GAYO
SD s72016 850m
hello salman, ask script edit,
Reply
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
artHow to File Upload and View with PHP and MySQL | Coting Cage
azireorr
to send you
\gcage' would
&) IWAN GAYO This website ‘co
8/17/2016 852 PM
Push Notifications
hello salman, ask script to
Nah! im
there are comments in reply
powered by PushEngese
© IWAN GAYO
016 8:5
GF erraoisssaem
hello salman, ask script to edit there is , if
there are comments in reply yes salman
Reply
@ UNKNOWN
8/22/2016 4:30 PM
wt
it is possible to switch to postgresql will
work?
Enter your comment. .
‘Comment as:
Select profile.
Preview
Load more
hiphwun codngcage.cer/2014/t2fle-upload-and-viow-wit-php-and-mysa. Mim!
Tortaai017 How to File Upload and View with PHP and MySQL | Coting Cage
Newer Past Home
This web:
Push Notifications
powered by PushEngooe
Subscribe Through E.
Free Updates
Home + About + Sitemap + ContactMe + Privacy Policy
Copyright © 2017 Coding Cage + All Rights Reserved to Pradeep Khodke « Designed By Blogtipsntricks
omca ©)
hiphwun codngcage.cer/2014/t2fle-upload-ard-viou-wit-php-and-mysa. Mim!
mn
|