An Image Hosting Solution
- Install XAMPP/WAMP.
- Create a DB with your choice of name, and 2 Tables
images
&users
.- You can also create a User in your SQL Server specifically for this Application.
- Make sure to give Proper Permissions and Level of Access to this Account.
- Make 2 Columns in
images
Table withUserName
as the 1st Column &FileName
as the 2nd, and both typeTEXT/VARCHAR
. - Make 3 Columns in
users
Table withID
as the 1st Column (TypeINT
), andUserName
&Password
as the 2nd & 3rd Columns (TypeTEXT/VARCHAR
). - Add Users to the
users
Table as required. - Clone the Project in
C:\xampp\htdocs
. - Modify the
dbConfig.php
as follows:
<?php
$db = mysqli_connect('localhost', 'YOUR_ACCOUNT_USERNAME', 'YOUR_ACCOUNT_PASSWORD', 'DB_NAME');
?>
- Create a folder
images
inC:\xampp\htdocs\PicStore
. - Start your Web Server & DB Server and navigate to
localhost/PicStore
.