How to add template in codeigniter |how to create template in codeigniter| template in codeigniter 4
Upload PDF File: In PHP, you have uploaded files in a database and a directory. In this tutorial I will help you how to upload only pdf file using php.
At first go to your form page and set accept=”application/pdf” in the input file. I will provide the full code in the below with step by step.
Form Page:
<form method="post" role="form" enctype="multipart/form-data"> <input type="file" name="pdf_file" id="pdf_file" accept="application/pdf" /> <button id="send" type="submit" name="submit" class="btn btn-success">Submit</button> </form>
PHP CODE:
<?php $allowedExts = array("pdf"); $temp = explode(".", $_FILES["pdf_file"]["name"]); $extension = end($temp); $upload_pdf=$_FILES["pdf_file"]["name"]; move_uploaded_file($_FILES["pdf_file"]["tmp_name"],"uploads/pdf/" . $_FILES["pdf_file"]["name"]); $sql=mysqli_query($con,"INSERT INTO `Table Name`(`pdf_file`)VALUES($upload_pdf')"); if($sql){ echo "Data Submit Successful"; } else{ echo "Data Submit Error!!"; } ?>
Related posts
I want for study
Not good
They must discover a player at it who often be an impact player specifically.
After his nine goal and 17 point performance, Bickell is due a hefty pay care for.
I’m waiting for Joe to pull a Don Imus from this one.
Unless you were personally touched by the crime, then by following.
Make sure you offer the actual set of advantages and have
a few extra incentives. It made buyer feel warm, welcomed and appreciated.
Good article. I am experiencing many of these issues as well..
Yet another excellent article from you, all useful in filling up my
head up with useful information. I have also taken the time to share this on Fb
🙂
Thank you.
I’m not sure where you’re getting your info, but great topic.
I needs to spend some time learning more or understanding more.
Thanks for fantastic information I was looking for this info for my mission.
Spot on with this write-up, I really believe that this web site needs far more attention. I’ll probably be returning to
read more, thanks for the information!
I conceive you have remarked some very interesting details, thank you for the post.
I’ve been browsing online more than three hours today, yet I never
found any interesting article like yours. It
is pretty worth enough for me. In my view, if all
site owners and bloggers made good content as you did, the
web will be much more useful than ever before.
Keep on writing, great job!
What’s Taking place i’m new to this, I stumbled upon this I have found It absolutely helpful and it
has helped me out loads. I’m hoping to give a contribution & assist other users like its helped
me. Good job.
hey there and thank you for your info ? I have certainly
picked up anything new from right here. I did however expertise some technical
points using this site, since I experienced to reload the website many times previous to I could get it to load correctly.
I had been wondering if your hosting is OK? Not that I’m complaining,
but sluggish loading instances times will often affect your placement in google and can damage your high-quality score
if advertising and marketing with Adwords. Anyway I?m adding this RSS to
my email and can look out for a lot more of your respective fascinating content.
Make sure you update this again very soon..
hello there and thank you for your information ? I?ve certainly picked up something new from right here.
I did however expertise several technical points using this
website, as I experienced to reload the website many times
previous to I could get it to load correctly. I had been wondering if your web
host is OK? Not that I am complaining, but slow loading
instances times will often affect your placement in google
and could damage your high-quality score if advertising and marketing with Adwords.
Well I?m adding this RSS to my e-mail and can look
out for much more of your respective exciting content.
Ensure that you update this again soon..
I believe other website owners should take this internet site
as an example, very clean and wonderful user genial design and style.
It’s appropriate time to make a few plans for the longer term and it is time to be happy.
I’ve learn this put up and if I may just I wish to counsel you some fascinating issues or
suggestions. Perhaps you can write next articles regarding this article.
I wish to read more things about it!
I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it
much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme?
Excellent work!
hello there and thank you for your info – I have definitely picked
up something new from right here. I did however expertise several technical points using this site, since I experienced to reload tthe website a lot of
times previous to I could get it to load correctly. I had been wondering if your web hosting is OK?
Not that I’m complaining, but slow loading instances
times will very frequently affect your placement in google and can damage your high quality scor if ads and marketing with
Adwords. Well I’madding this RSS to my e-mail
and could look out for much more of your respective exciting
content. Ensure that you updrate this again very soon.
Hey There. I discovered your blog using msn. That is a very smartly
written article. I will make sure to bookmark it and come back
to learn extra of your helpful info. Thank you for the post.
I’ll certainly return.
Thanks for your posting on this site. Frrom my own personal experience, there are ocassions when softening way up a photograph might
provide the photo shooter with a little bit of an creative flare.
Many times however, that sopft blur isn’t precisely what you had as the pprimary goal and can in many cases spoil a normally
good snapshot, especially if you thinking about enlarging them.
Very nice write-up. I definitely love this site. Keep it up!
This is a topic that is near to my heart…
Cheers! Exactly where are your contact details though?
Pretty! This was an extremely wonderful post. Thanks for providing this information.
Excellent post. Keep posting such kind of information on your blog.
Im really impressed by your blog.
Hi there, You have done a fantastic job. I will definitely
digg it and in my view recommend to my friends. I am sure they’ll
be benefited from this website.
Thank you a bunch for sharing this with all people you really understand what you are talking
about! Bookmarked. Please additionally discuss with my
web site =). We can have a hyperlink change agreement between us
Thanks for sharing your thoughts. I truly appreciate your efforts and I am waiting for your further write ups thank you once again.
I love your blog.. very nice colors & theme. Did you create this website
yourself or did you hire someone to do it for you?
Plz answer back as I’m looking to design my own blog and would like to find out where u got this from.
thanks
When I originally left a comment I appear to have clicked on the -Notify
me when new comments are added- checkbox and from
now on every time a comment is added I recieve four emails with the same comment.
There has to be a means you are able to remove me from that service?
Thank you!
Hello colleagues, how is everything, and what you desire to say about this paragraph, in my view its genuinely awesome in favor
of me.
Hello there, just became alert to your blog through Google, and found
that it is really informative. I’m going to watch out for
brussels. I’ll be grateful if you continue this {in future}.
Many people will be benefited from your writing. Cheers!
Excellent blog here! Also your web site loads up fast!
What web host are you using? Can I get your affiliate link to your host?
I wish my website loaded up as fast as yours lol
Somebody necessarily assist to make seriously articles
I would state. This is the very first time I frequented your website page and so far?
I amazed with the analysis you made to create this actual publish incredible.
Great job!
Simply desire to say your article is as amazing.
The clarity for your post is simply great and that i could assume you’re a professional in this subject.
Fine together with your permission let me to grasp your feed to
stay up to date with forthcoming post. Thanks 1,000,000 and
please keep up the rewarding work.
I am sure this article has touched all the internet visitors,
its really really pleasant paragraph on building up new website.
Excellent pieces. Keep writing such kind of information on your blog.
Im really impressed by it.
Hello there, You’ve done an excellent job. I will definitely digg it and in my view suggest to my friends.
I am sure they’ll be benefited from this site.
Excellent weblog here! Additionally your website quite a bit up very
fast! What host are you using? Can I am getting your affiliate link
to your host? I desire my web site loaded up as quickly as yours lol
Hi my loved one! I wish to say that this article is amazing, nice written and
include approximately all important infos. I’d like to peer extra posts like this .
Nice answers in return of this difficulty with real arguments and describing the whole thing regarding that.
Spot on with this write-up, I seriously feel this web site needs a great deal
more attention. I’ll probably be returning to read through more, thanks for the information!
Hi there very nice blog!! Man .. Excellent .. Wonderful ..
I’ll bookmark your site and take the feeds also…I’m satisfied to search out a lot of helpful information right here in the
post, we’d like develop more strategies on this regard, thanks
for sharing.
Review my web-site top 10 toys – http://Www.honkaistarrail.wiki,