Help - Search - Members - Calendar
Full Version: HOW TO OPEN SELECTED PDF FILE NAME FROM MYSQL TABLE USING PHP
HTMLHelp Forums > Programming > Server-side Scripting
shankar from vizag
Greetings

Basing on lot of online references,

1. Created a html page to upload a pdf file to a specific folder "uploads" in htdocs.
2. Created a table in mysql to store the uploaded file name.

Now, unable to call / open the selected pdf file. Kindly guide me in this regard.

I have tried to attach the .rar file of uploads folder but this page is not allowing to attach the .rar file.



Click to view attachment Click to view attachment
shankar from vizag
QUOTE(shankar from vizag @ Jun 23 2019, 07:23 AM) *

Greetings

Basing on lot of online references,

1. Created a html page to upload a pdf file to a specific folder "uploads" in htdocs.
2. Created a table in mysql to store the uploaded file name.

Now, unable to call / open the selected pdf file. Kindly guide me in this regard.

I have tried to attach the .rar file of uploads folder but this page is not allowing to attach the .rar file.



Click to view attachment Click to view attachment


updated files are attached herewith. There is a problem with openpdf.php:


Click to view attachment Click to view attachment
Kindly guide me in fixing the issue.

regards
CharlesEF
I've been going thru hell with Windows 1903 update for the last few days. I started to look over your code but I stopped. Why have you started using 'mysql_' commands? You know PHP 'mysql_' commands have been deprecated for many years and removed in PHP v7.

Sorry, I can't help you as long as you use outdated commands.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.