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
imagesTable withUserNameas the 1st Column &FileNameas the 2nd, and both typeTEXT/VARCHAR. - Make 3 Columns in
usersTable withIDas the 1st Column (TypeINT), andUserName&Passwordas the 2nd & 3rd Columns (TypeTEXT/VARCHAR). - Add Users to the
usersTable as required. - Clone the Project in
C:\xampp\htdocs. - Modify the
dbConfig.phpas follows:
<?php
$db = mysqli_connect('localhost', 'YOUR_ACCOUNT_USERNAME', 'YOUR_ACCOUNT_PASSWORD', 'DB_NAME');
?>- Create a folder
imagesinC:\xampp\htdocs\PicStore. - Start your Web Server & DB Server and navigate to
localhost/PicStore.