Online Restaurant Site Using PHP With Source Code

Project : Restaurant Site (online)

Features:

  1. Log-In/Register system.
  2. Online Transactions.
  3. The password can be changed online.
  4. Categories divided in Food Zone.

In this project, customers can check the food items and if they want, they can easily enter the quantity and add to cart for purchase details. Price is also mentioned in each food items. There are different categories which make easy to search the items for the users. The user can register to our site for free and should log in to order food items online. The user can easily change their password anytime they want from the site. It’s easy to operate and understand by users.The design is so simple that user won’t find it difficult to use and navigate.

How To Run?

You’ll need XAMP Server or WAMP Server. Put the file inside “c:/wamp/www/” or “c:/xampp/htdocs/”. Go To “localhost/phpmyadmin” in any browser and create Database (name according to SQL file).In that Database, Import the SQL file and finally go to URL: “http://localhost/file_name/phpfilename
Don’t Forget To create a database and import SQL file to run.

Project Demo

DOWNLOAD ONLINE RESTAURANT SITE USING PHP WITH SOURCE CODE : CLICK THE BUTTON BELOW


Author: Fabian Ros
0 0 votes
Article Rating
Subscribe
Notify of
guest
38 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
sami
sami
6 years ago

can you send me agricultural management system in my gmail account

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  sami

sorry, we don’t have that

Ali hamza
Ali hamza
6 years ago

Sir how does it works send me start to ending procedure

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  Ali hamza

we don’t have documentation and reports

Princes Johyrra Uday
Princes Johyrra Uday
6 years ago

Hi, what’s the login to the admin? Thank you very much. 🙂

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago

http://localhost/restro/admin/login-form.php
Username: admin
Password: 1234

Sorry, we forgot to mention the Admin Panel details inside project’s Readme File

Siva
Siva
6 years ago

Using chrome and its says unable to connect database or sometimes something wrong kindly help to connect with database

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  Siva

its depends upon the database name that you have provided in your server. Can you tell me what database name did you provide??

aak
aak
6 years ago

Hi sir, i had created database which name “rms” based on database dumb that you have provided.however i m not sure where should i rename “rms” in this content.In this case, can you help me? thank you.

<?php

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  aak

After creating “rms” database have you imported the “rms.sql” file?

akn
akn
6 years ago

hi sir. i had created database named “rms” based on database dump that you provided. however i m not sure where should i rename “rms” in this php. in this case, can you help me? tq.
//Connect to mysql server
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
die(‘Failed to connect to server: ‘ . mysql_error());
}

//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
die(“Unable to select database”);
}

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  akn

After creating “rms” database have you imported the “rms.sql” file?

Michael
Michael
6 years ago

I am unable to create new users in the system, i get the error “something went wrong. Our team is working on it at the moment. Please try again after some few minutes.” coming from //check whether an account with a given email exists $qry_select=”SELECT * FROM members WHERE login=’$login'”; $result_select=mysqli_query($qry_select); if(mysqli_num_rows($result_select)>0){ header(“location: register-failed.php”); exit(); } else{ //Create INSERT query $qry = “INSERT INTO members(firstname, lastname, login, passwd, question_id, answer) VALUES(‘$fname’,’$lname’,’$login’,'”.md5($_POST[‘password’]).”‘,’$question_id’,'”.md5($_POST[‘answer’]).”‘)”; $result = mysqli_query($qry); //Check whether the query was successful or not if($result) { header(“location: register-success.php”); exit(); }else { die(“Something went wrong.n Our team is working on it at the… Read more »

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  Michael

I just rechecked it. I tried to create a new user from the Register, it works perfectly! create a new user from the register which can be found on the index page.

sh232
sh232
6 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsRestaurant-Site-PHPRestaurant Site PHPrestroindex.php:6 Stack trace: #0 {main}thrown in C:xampphtdocsRestaurant-Site-PHPRestaurant Site PHPrestroindex.php on line 6

Naseeb Bajracharya
Naseeb Bajracharya
6 years ago
Reply to  sh232

mysql_connect() has been removed in PHP 7.
You can use mysqli_connect()
or simply switch to PHP 5.6.3

sushmitha
sushmitha
6 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsRestaurant Site PHPrestrofoodzone.php:5 Stack trace: #0 {main} thrown in C:xampphtdocsRestaurant Site PHPrestrofoodzone.php on line 5

Venkatesh R
Venkatesh R
5 years ago

Notice: Use of undefined constant APP_NAME – assumed ‘APP_NAME’ in C:xampphtdocsrestrobilling-success.php on line 20
APP_NAME Restaurant

i got this error after placing order

what this means
>???????????

saki
saki
4 years ago
Reply to  Venkatesh R

help

omar
omar
5 years ago

hello
how to change the currencies ?
pls send me steps

ajay
ajay
5 years ago

Where is SQL file and how to connect database

ajay
ajay
5 years ago
Reply to  ajay

can anyone help me

Adiba
Adiba
5 years ago

I can’t login admin site where I use username: admin & password: 1234. What is the problem I can’t understand.

AKASH
AKASH
3 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\rms\index.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\rms\index.php on line 6 .
This is the error i got after i tried using localhost/rms in chrome. Can you help me with this please?