π Heyyy !! Nice To See you!! I made cafeteria website using php with login/register authentication (using mysql database)
Link - http://thecafeteria.42web.io/
- π Login/Register Authentication
- π Form Validation Using Ajax
- π Password Stored Encrypted In Database Using PHP Encryption (Hash-12)
- π§ Message is send to mail using PHP Mailer Libraray
After Clonning Make Changes Of Database Infornation in add.php(Ln 3) , check.php(Ln 3) and sendmsg.php(Ln 4)
Replace This -
$conn=new mysqli('localhost','root','','cafe');
With -
$conn=new mysqli('localhost',Your_DB_User,Your_DB_Password,Your_DB_Name);
And Also Replace YOUR Eamil And Password In sendmsg.php(Ln 52,Ln 53,Ln 60) -
53. $mail->Username = 'infothecafeteria@gmail.com'; //Replace With Your Mail
54. $mail->Password = 'xxxxxxxxxxxx'; //Replace With Your Mail Password
60. $mail->addAddress('infothecafeteria@gmail.com', 'Admin'); //Replace With Your Recipient
And For Creating Database Use This Command -
CREATE TABLE IF NOT EXISTS `members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`lname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
If You β₯ It Please Drop a β π