Upload files on php/mysql site server and saving details on database

Submitted by: 
Visitors have accessed this post 18643 times.

Upload files on php/mysql site server and saving on database

instead of saving files into the database upload to the server and save file location on the database

find php files, mysql dump file and js on the zip happy using

NB: file location are relative to the web site files

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


having problem in dbconnector

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\upload\dbConnector.php:17 Stack trace: #0 C:\xampp\htdocs\upload\opener_db.php(4): DbConnector->DbConnector() #1 C:\xampp\htdocs\upload\index.php(5): require('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\upload\dbConnector.php on line 17

Make sure mysql is running, and edit the config file to match your mysql server settings

from Josiah

i'm downloading the code...i hope this will answer my need...i need upload and download code for my project...But can you also share some advance SQL injection code if you may....email me @ [email protected] if you can share help...tnx anyway for the code...Happy coding..i'm just a newbie here..

thank you!

dude can u upload or update the database coz i got errors on it this is the error [Err] 1007 - Can't create database 'upload'; database exists
[Err] --
-- Database: `upload`
CREATE DATABASE `upload` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
[Msg] Finished - Unsuccessfully

you need to upload the sql file in the zip file to create this database

from Josiah

Great code. Thank you very much...

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.