How to create a simple dynamic website with php and mysql

by  
Share:
How to create a simple dynamic website with php and mysql

I have been posting tutorials from basic to advance levels. But recently when interacting with some my blog followers (still beginners) I found that they still have trouble doing basic stuff like connecting their php scripts with database. I have been getting many request from my blog followers for a simple php project, although I can’t solve every one issues but can certainly do my part. So this time I have made a mini project on how to create a simple dynamic website with php and mysql. You can download this mini project for free and customize it as per your needs and creativity.

View Demo

What is this simple website project with php and mysql?

In this mini project you will learn how to connect your database (mysql) with php, setup an html template, make header, footer, dynamic sidebar, fetch title, content, meta tags, meta description for dynamic web pages (individual pages). You can manage these web pages form the manage site area which is like the admin section of the website. You will also learn how to integrate facebook fan page, google badge plugin, and twitter follow button in the sidebar.

 

Folder and files used in this project

Take a look at the folder and files structure used in this project.

  • Manage Site – This is like an admin folder which contains files to create and view all the dynamic web pages of the website.
    • Cleditor – A light weight javascript library for UI text editor.
    • js – Admin area javascript files
    • home.php – Home page for the admin area
    • header.php – The header part of the admin
    • footer.php – The footer part of the admin
    • manage_pages.php – Manage all the pages that are created or to be created. delete pages from this section
    • add_edit_page.php – Add or edit a page here
    • tagline.php – Update website tagline here
  • libs – It contain configuration files, common functions and database connection script
    • common_functions.php – Commonly used function for the websites and admin area.
    • constants.php – Define constatant like table names, databasebe user access, site name
    • config.php – Database connection script.
  • js – It contains javascript files for the website.
  • images – Images for the website.
  • css – The stylesheet files for the website.
  • index.php – The home page of the website.
  • header.php – Dynamic header of the website.
  • footer.php – Dynamic footer of the website.
  • sidebar.php – Dynamic right sidebar of the website.
  • about-us.php – About us page.
  • contact-us.php – Contact us page with form.
  • category.php – Category page with sub pages.
  • page.php – A dynamic page that will load page content based on id.

Take a look at the database schema with sample records.

CREATE DATABASE `simple-website`;
USE `simple-website`;

CREATE TABLE IF NOT EXISTS `mp_pages` (
  `page_id` int(11) NOT NULL AUTO_INCREMENT,
  `page_title` varchar(255) NOT NULL,
  `page_desc` text,
  `meta_keywords` varchar(255) DEFAULT NULL,
  `meta_desc` varchar(255) DEFAULT NULL,
  `sort_order` int(11) NOT NULL DEFAULT '0',
  `parent` varchar(255) NOT NULL DEFAULT '0',
  `status` enum('A','I') NOT NULL DEFAULT 'A',
  `page_alias` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`page_id`),
  UNIQUE KEY `page_name` (`page_alias`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;

CREATE TABLE IF NOT EXISTS `mp_tagline` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tagline1` varchar(255) DEFAULT NULL,
  `tagline2` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

INSERT INTO `mp1_tagline` (`id`, `tagline1`, `tagline2`) VALUES
(1, 'aarafacademy.com', 'how to create a simple dynamic website with php and mysql.');

INSERT INTO `mp_pages` (`page_id`, `page_title`, `page_desc`, `meta_keywords`, `meta_desc`, `sort_order`, `parent`, `status`, `page_alias`) VALUES
(1, 'Welcome to my site', 'Hello friends. I have made this dynamic website which you can download for free.', 'tags', 'descsds', 0, '-1', 'A', 'index'),
(2, 'About Us', 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'tags', 'dasdasd', 1, '-1', 'A', 'about-us'),
(4, 'Contact Us', 'Contact us page', 'dasd', 'asdasd', 3, '-1', 'A', 'contact-us'),
(9, 'Category', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'category', 'description goes here', 1, '-1', 'A', 'category'),
(10, 'PHP', 'PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.', '', '', 1, '9', 'A', 'php'),
(11, 'Mysql', 'MySQL officially, but also called My Seque is (as of July 2013) the world''s second most widely used open-source relational database management system (RDBMS).', '', '', 2, '9', 'A', 'mysql'),
(12, 'Ajax', 'Ajax (an acronym for Asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side to create asynchronous web applications.', '', '', 2, '9', 'A', 'ajax');

How to set up the project in your server.

Follow these steps to setup this project in your server:

  • Download the project zip file (link is available below).
  • Create a folder name simple-website under your htdocs/www folder.
  • In your phpmyadmin create a database named simple-website (you can give any other name too). Execute the SQL file database.sql in your database (remove create statement if you have already create a database).
  • Go to constants.php under libs folder. (libs/constants.php). Replace the database name in DB_DATABASE which your database name, add database username, hostname, passsword.
  • Also change the site URL (HTTP_SERVER and SITE_DIR)

 

Tips and tricks about the project.

There are some points that you need to remember and follow:

  • The table mp_pages has a field page_name it must be unique for every record. It means that every page must have a unique page name.
  • For the home page use index in the page_name field(mandatory), similarly for other pages like contact-us.php use contact-us(can be some other name ).
  • Pages can be created in two ways, (a) create a physical page with any name e.g. abc.php and then add/upload to your server. then add a database record with a same page which will have all the content, title and meta tags. (b) The other way is just to create a new page through database but with unique page name (this is used when you want pretty page url) and then the content will be called through their ids. like creating a page.php page and getting their contents, title (page.php?id=10).
  • To get a facebook like box plugin you need to create a facebook application first and then you can get the code from this link. If you are having trouble to create facebook application then read this tutorial which will help you in creating facebook application.
  • To get a google badge similar in the website. Go to google developers page. You will just need to replace your google plus/ page id in the url.

View Demo
Download
I hope this project will help you get started with php and mysql. Share your comments/feedback about this project.

Get the latest updates directly in your inbox for FREE: Subscribe here

Share your feedback / let me know your doubts regarding this tutorial in the comment box given below.

Share:
Hasan

Shahrukh Khan (Hasan)

A software engineer who's a die-hard coder, blogger, dreamer and mentor with years of expertise in web development. Know more...

Related Posts

Pepe Zarate on

Forbidden
You don’t have permission to access /simple-website/ on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80

:/

Reply
tejkiran on

respected sir,

I am tejkiran, how to learn in php and web development tell me sir

Shahrukh Khan on

check over the internet, lots of free courses are already there.

s.shivasurya on

give permissions ! chmod u+x for folder

Reply
Parshv Shah on

can u plzz tell me if i dont’t have MYSQL then can i connect database with MS ACESS?
If yes then how can i do it??

Reply
Shahrukh Khan on

Of course you can connect php with ms-access using ODBC technique. but my project is made in php and mysql. For using ms-access with php you need to setup database in ms-access first.

Reply
Parshv Shah on

okkk
thnks…

AKHIL K THOMAS on

can you help me sir to learn PHP?

Shahrukh Khan on

what do you want to learn bro?

Nitish Kasar on

thanks for sharing , was looking for manage site part

Reply
Alta on

It is really a great and useful piece of info.
I am glad that you simply shared this helpful info with us.
Please keep us up to date like this. Thank you for sharing.

Reply
excel courses manchester on

whoah this weblog iss excellent i love studying your posts.

Stay up the good work! You understand, many people are looking
round for this information, you can help them greatly.

my web-site excel courses manchester

Reply
Hidayt Rahman on

Hi
How can I make product listing page and advance manage site system?
please help me

Reply
Shahrukh Khan on

just like any other modules, makes a product table and add a form with required fields.

Reply
vidya on

i m creating a mini project using php-mysql and wamp server on online property selling and buying. could you give me the codes for it. only four to five forms are enough. pls

Reply
Shahrukh Khan on

Why are you always upto codes, please try yourself and then we will try to help you the best possible way we can. Thank you.

Reply
siva on

Hello sir,
Im fresher,i have interest in php.so please send one miniproject(creating dynamic website using php,mysql,html)to my mail.

Thanking you

Reply
Shahrukh Khan on

please download the project from the above download link ( bottom of the article ).

Reply
sachin on

hi…
when i click forgetton password its going to email spam box…what is te prolm plz solve it..

regards
sachin

Shahrukh Khan on

try using smtp method

naza on

Hello Sir I cannot download , I can only view the demo

Reply
Shahrukh Khan on

try again u will see. click on the social links below to activate the download link.

Reply
Suresh Singh on

Dear bro,could you please suggest me,the php script for online YouTube downloader!

Reply
vibhuti on

sir muje notification genarate karna hai apni site me to uske liye coding me help kijiye..

Reply
Shahrukh Khan on

what help you need.

Reply
somatodrol skutki uboczne on

We’re a group of volunteers and starting a brand new scheme in our community.
Your website offered us with useful info to work on. You
have performed an impressive task and our whole
group can be thankful to you.

Reply
Shahrukh Khan on

Thanks a lot.

Reply
jeunesse on

This blog was… how do you say it? Relevant!! Finally I’ve found something which helped me.
Cheers!

Reply
aris on

hi.. thanks for this awesome tutorial.
i have few questions : the link of page is not pretty like this simple-website/page.php?id=cGhwX0AjIUA= instead of simple-website/title-of-the-article.html
how to hide Manage Site section from other than the admin ?

Reply
Shahrukh Khan on

To do that you have to use .htaccess
RewriteRule (.*)\.html $1.php

Reply
projektowanie wnętrz Września on

Hey there I am so grateful I found your site, I really found you by
accident, while I was browsing on Bing for something else, Regardless I am here now and would just like to say thanks a lot for a incredible post and a all
round enjoyable blog (I also love the theme/design), I don’t have time to go through
it all at the minute but I have book-marked it and also added your RSS feeds, so when I have
time I will be back to read more, Please do keep up
the excellent job.

Reply
Shahrukh Khan on

Thank a lot, really appreciate it.

Reply
Swapnil on

Hello Sir
Can You Give Me Any Video Link So it’s To Easy For Me

Thanks

Reply
Redouan on

salam,
how can i solve this please : Fatal error: Class ‘PDO’ not found in C:\AppServ\www\simple-website\libs\config.php on line 36

Reply
Shahrukh Khan on

Make sure this line has no semicolon (comment)
extension=php_pdo_sqlite.dll

Reply
hitesh on

Not able to download 🙁

Reply
Shahrukh Khan on

double click on that link.

Reply
hitesh on

Dear Shahrukh,
Thank you so much.. 🙂

Reply
M.Asif on

Assalam o Alaikum!SIR,I HOPE U’ll be fine.I am glad to read ur tutorial.Dear Sir!I’ve no knowledge about php&mysql.I want to learn.So,Plz guide me and tell me how can I learn them..Allah Hafiz

Reply
Shahrukh Khan on

Walikum as salam! Get an online e-book on php and mysql to get started, It will help you right now for building up the basics.

Reply
anjali on

not able to find the link

Reply
Shahrukh Khan on

check on the social link below to get the download link.

Reply
sohan on

when accessing at localhost it says (invalid data source name)

Reply
Shahrukh Khan on

please make sure the path is correct.

Reply
omkar on

how to connet them all in one page to work

Reply
Shahrukh Khan on

check the source code, database is configured in a single page only.

Reply
Dayanand Dhumala on

The localhost page isn’t working

localhost is currently unable to handle this request.
500

Reply
dele on

I get this error after installing simple-dynamic on my server

The ololufe.com page isn’t working

ololufe.com is currently unable to handle this request.
HTTP ERROR 500

Any help in this?

Reply
Anindya on

I’ve downloaded the project.For any kind of help I’ll contact with you…Thanks .

Reply
Daniel on

Hi mate . Your works is great and thx for that . I have only one little problem . Can you please tell me how to make a new template for this script ?i add login script for admin area and is working fain . and i don`t have idea how to make a new template . can you please help me with that ? Thx .

Reply
Shahrukh Khan on

Thanks mate. New template means new design.. if you just want to change the template.. just keep the pages as it is (pages structure and naming convention) and just try to change the code of the new template. You can get some free theme from this website https://w3layouts.com/

Reply
Shahrukh Khan on

create a .htaccess file and write the code below, this may do it

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)\.html $1.php [L]

</IfModule>

Reply
prabhakar on

Hi bro, Can i have your skype id.. I have few issues.. please help me..

Prabhakar on

Hi Bro Please accept my friend request in skype.. prabhakar.seo Just waiting for your response from more then a week, i stuck with modrewrite and breadcumb issue.. please help me out..
hoping for some response..

prabhakar

Nelu Marius on

Try this mate maybe is ok 😛
+++++++++++++

RewriteEngine on
RewriteBase /

RewriteCond %{THE_REQUEST} (.).php
RewriteRule ^(.).php $1.html [R=301,L]

RewriteCond %{THE_REQUEST} (.).html
RewriteRule ^(.).html $1.php [L]
____________________________________

post after you really try
P.S. it`s . htaccess file

Reply
Prabhakar on

Hi, can any one please help me out, I am facing issue with mod-rewrite urls.

Website: onlinediscountcoupons.in

I have created this website using the sample code provided by Mr. Software Guy. Please help me out

My skype Id: prabhakar.seo

Thanks

bharath kumar on

i am holding a website in that the database is missing ,so without data base we have to update that site

Reply
Shahrukh Khan on

Database must be in the db/database folder. Please find the .sql file in the zip folder.

Reply
Mudasir on

Hi,

Thanks for sharing this topic, Just wonder if there is any tutorial available for this, to make it better understandable

Reply
Shahrukh Khan on

Hi.
What part of the script do you want to understand?

Reply
Mudasir on

I am just a beginner, could you guide me from where I should start, the hierarchy?

Shahrukh Khan on

You mean the pages hierarchy?

nitin on

i want simple project in php + Mysql
I have 500 files stored in folder.
I have 20 users and want to create login ID and password for each users.
Each user after successfull login ID and password can accessm the file.
At the same time a report shall be maintained showing which users access which files.

OPlease provide support.

Regrads

Reply
Chinmai on

Hello Nitin.. Even I’m working on same project. Could you please help me

Reply
Neha on

hey ,
I m neha diwakar i want to php website design in starting and how to make pages in php please send me the attached coading and pages files my email id- nehadiwakar0453@gmail.com and please send me your contact no.

regards
neha diwakar

Reply
Premnath on

after opening the website you will get the following error
SQLSTATE[28000] [1045] Access denied for user ‘vpstejmf_vps’@’209.99.16.94’ (using password: YES).
Would you please help me as I have to make my website live

Reply
Shahrukh Khan on

Well it because you have set the wrong username password or your server name must be set wrong in your config file. check your website cpanel to know these details.

Reply
Sikandar on

i have installed wamp on my friend’s laptop but …..
Forbidden erro…. you don’t have premission on this server????? how to slove it…plzzz help me earlyyy as possible….

Reply
Shahrukh Khan on

make sure you have access right of the folders and you are logged in as administrator

Reply
Nelu Marius on

Hi ,
I Also read this post .. if you try on the laptop install XAMPP i can help you with that : https://www.apachefriends.org/de/download.html
that is the link . and you have MySql , Apache , Filezilla and much more . and the funny things it`s working .
Have Fun .

P.S. make sure you ar administrator when you install XAMPP and give access to all users .

Reply
Nelu Marius on

Hi Shahrukh ,

Do you have any updates to code ?

CNM

Reply
sara on

Great site for beginners.

Reply
Shahrukh Khan on

Thank you

Reply
shalini on

I got your concept , is there any chances to create a dynamic website using JavaScript. if yes means can you explain me how to write those concept.

Reply
Shahrukh Khan on

try using node.js platform

Reply
nisha on

hi ,
i just want to know whether its necessary to install wamp server or one can directly download this project and upload the files on the server via ftp and then see if it works ..
awaiting your reply

Reply
Shahrukh Khan on

no any software like wampp/xampp/lampp/mamp will do

Reply
nisha on

hi,
i just wanted to know whether it is required to download wamp server or one can directly download the files and upload them on the server?
if yes which version of wampserver i need to download?

Reply
Shahrukh Khan on

you need to have a wampp/xampp/lampp/wampp on your machine to work

Reply
Grace R.Doherty on

I don’t even know how I stopped up here, but I assumed this submit used to be good.
I do not realize who you are however certainly you
are going to a well-known blogger should you are not already 😉 Cheers!

Reply
Shahrukh Khan on

LOL 🙂

Reply
rahul on

In this tutorial I want to upload text and images combined into the page_desc field in database. How to do that.
Thank for nice tutorial…

Reply
dream on

First of all I want to say terrific blog! I
had a quick question that I’d like to ask if you do not mind.
I was interested to find out how you center yourself and clear your thoughts
before writing. I have had a difficult time clearing my
thoughts in getting my thoughts out there. I do enjoy writing however
it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out
how to begin. Any ideas or tips? Thanks!

Reply
Shahrukh Khan on

Hi. Thanks for appreciating my work.
Well I can understand what you are going through, as I have passed the same phase. This is how i work. First of all before choosing any topic i just work on the problem and solution. some R&D and then I just write some dirty code until I achieve the solution I try to optimize it to bits. Now the final phase is where I put myself in users/reader shoes and think how simple and effective a tutorial can be if I had to read it. Also not to forget I switch off my cellphone and internet to keep away from distraction. Hope this helps you.

Sorry for late reply, been busy with my startup nowadays.

Reply
MURUGAN T G on

How do i start a project initially, for example a company need one type of project
1.How to start or plan?
2.and What are the information collect from their? [related to project]
pls do help me sir

I have selected 3 software company as a UI developer but immediately they give some project
I don’t know how to start
pls guide to me

Reply
Shahrukh Khan on

1. be focused
2. learn as much as you can abt the project.
3. get all the details you need for the project
4. consult your seniors ( if any) to guide you from time to time.
5. start developing section by section

Reply
teak indoor furniture on

I’m amazed, I have to admit. Seldom do I come across a blog
that’s equally educative and interesting, and without a doubt, you have hit the nail on the
head. The issue is something not enough people are speaking intelligently about.
I am very happy that I came across this during my search for something
concerning this.

Reply
syl on

Thank you a lot for your work. I find it really clear and helpfull.
Best regrds

Reply
Shahrukh Khan on

Thanks

Reply
Rakesh on

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘simple-website.mp_pages’ doesn’t exist

error pls help

Reply
Shahrukh Khan on

check the database it must be there

Reply
sahil on

I have created the database in PHPMyAdmin but it’s neither showing error nor showing content which is in database.sql on the website

Reply
Shahrukh Khan on

Have you imported the database.

Reply
Rahul on

how do i make website without using ‘header.php’. and ‘footer.php’ in every page..
e.g: wordpress

Reply
Shahrukh Khan on

header and footer are the common file.

Reply
Rahul on

and like with my first and favorite platform MyBB,.

Reply
Ratnakar on

Hi. Am very new to this php development. Where to dump the downloaded php project in my system.Iam getting confused.Please let me know are there any open source platforms are there r not?

Reply
Ahmad Fahrurroji on

This simple website development is good to be learned and applied. Even I am easy to understand.

thanks

Reply
singaraj on

hi shahrukh khan .. i have one doubt how to set fb login in my webpage …if the user login with fb and take name and email id in php..i will try many code but it not work… if you hlp me i want google+,fb login simple program in pdo php or nomal php

Reply
Sharlene on

Hi Shahrukh,
Great blog post btw, however, was wondering whether I can integrate PHP into my own HTML website on my local server without having the actual website live. Also, I want to only update one certain part of my website just the main content area still don’t get how to do it using PHP and Ajax, if you have a solution to this please do let me know. Thanks

Reply
Shahrukh Khan on

Hi Sharlene.
If you have a local server running on your machine, just create a folder in you html website and dump all the files there, set that up in the config files and you are good to go.

Reply
Ranjeet Singh on

i have downloaded zip file of shopping website and i have already xammp installed in it and it works run the small php programs and how can in use it sir plz reply as soon as possible ….In last i want to wish u
HAPPY EID

Reply
Shahrukh Khan on

Just follow the basic config file. else everything runs the same.
happy belated EID Mubarak.

Reply
Amanet AutoKredit on

Hello i have this error

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘simple-website.mp_pages’ doesn’t exist

Reply
Shahrukh Khan on

run the full sql code.

Reply
Samu on

Hi Shahrukh Khan,

I am Samu, I am totally new to web development, I was into system administration, But now I need to know about Web development, Can you please help me to fix the deceptive site ? http://www.ficaaas.com
It is been hosted by Godaddy, I contact them, But they asked to contact web developers, please help me.

I am looking forward

Reply
Shahrukh Khan on

I think its attacked by virus. the first thing you should do is to get a scan by some antivirus before doing anything.

Reply
krishna on

hello sir, i am a fresher .I want to make my professional career in designing.I have only basic knowledge of html & css & would want to learn php. How can i start?? shall i use dreamweaver for website designing with php ?

Reply
Shahrukh Khan on

Either be a designer or be a php coder, A php coder has to know HTML and css and javascript as well. I will recommend you to get some e-book to get started with PHP,or you can email me I can send you some ebook to get started with PHP.

Reply
Antoine Aarts on

Hey Buddy,

Nice Post!!!!

Your post is very helpful nd useful for the people you wish to work in the web development field. As it seems that people are showing great participation after reading this post. Thats really great. I too went through all the steps and found it very helpful. Thanks for sharing this piece of information and Keep sharing!!!!

Reply
Pinki Kumari on

Thanks for your post.
your post is very useful for us.
i am very new in php. so please help me.
and thanks for sharing this information and demoes Keep sharing.

Reply
Pinki Kumari on

i want to do a dynamic dropdown menu but i am not able to set the url path. i am able to create parent menu and child menu. but unable to give correct url to the parent menu as well as child menu.

please help me for this. thanks in advance.

Reply
Harivignesh on

Hello,
I am hari and i want to create a medical management website so that patients can register there appointment.I am ready with .php files i know to run on my localhost.But i want to give it to Public to register there appointment.I want make all my .php forms to run like http://www.hospital.com instead of .php.I dont know how to make my .php files to .com

Reply
Shahrukh Khan on

.com is the domain name or address like hospital.com is the address on the internet, .php is a file like .doc, .txt

Reply
Harivignesh on

Please mail the solution to my mail id please reply me soon urgent.

Reply
Arip on

Hi, Shahrukh Khan, it sound like Bollywood actor name.
I love this sample website, so simple and it is comfortable to look.

thank you for sharing this.
i would like to use your design as my project reference.

Reply
Shahrukh Khan on

Glad it work for you. And hey its similar to SRK

Reply
Neha on

please sir reply fast

Reply
spurtcommerce on

Your article is very nice. i got a many information to your blog. thanks for sharing and please update more information.

Reply
bengt on

can i protect simple-website/manage-site ?

Reply
Shahrukh Khan on

the best will be to rename the folder. or you can even try to block it via IP.

Reply
MANGESH on

hello sir i need help to create(build) website fpr project can u help me sir plzzzzzz
thank you

Reply
Shahrukh Khan on

regarding what?

Reply
Yash Patel on

Great sir.. Thanks for sharing.. Keel sharing your knowledge with us.

Reply
Amjad on

sir, i want a pagination for SUB PAGES .

your work is great.

Reply
Shahrukh Khan on

pagination codes are already there on my site, please search.

Reply
Bewertung on

Hello,

first of all Thank you!
But where is the Pagination? If I will write 100 Article I dont want to have the Sidebar with 100 Links 🙂 … Thanks and sheers

premon on

sir,,,i wants to know that how dynamic web application considering user preference ,you know in youtube system,particular user have seen particular youtube home page(display vedio fact),which is based on user demand,,i mean that type of vedio comes fast which i viewed maximum time,those type of vedio comes fast on display when i use youtube later.if i want to apply this thinking on a e-commerce site,now what can i do?any suggestion?

Reply
Shahrukh Khan on

I think you are confused with your specification of what you exactly want or I am not able to understand your question?

Reply
Aarti on

Hello sir,
I am new to web development. I have basic knowledge of html & css. Php is used in dynamic web development. In php, javascript is used. So, Java script is the base of development & very important in dynamic website development. So from where I can start learn js from basic to advance. Ajax, jquery, json all are the part of js. Between all of these which is used in dynamic website development. Which is good for future use. Please guide me.

Reply
Shahrukh Khan on

Start with the basics, PHP Mysql HTML and CSS. Then move on to JavaScript and then try building small projects.

Reply
mk on

what file should i execute from your project

Reply
Shahrukh Khan on

what do you want to execute

Reply
Cayodey on

Good One.
Can you add comment session to your project please
Thanks.

Reply
Shahrukh Khan on

i dont get you?

Reply
Cayodey on

Make provision for people to comment.
Comment box.

Reply
Shahrukh Khan on

surely will try to do it.

Reply
Jinal on

How do I apply the code for making one dynamic page in my website???

Reply
Shahrukh Khan on

just try to copy one page and rename it whatever your name like mypage.php

Reply
Pankaj Jadhao on

Hello Sir…..
I am Pankaj Am Done All Instruction but Site said could not find driver so please help me.

Thank You………..!

Reply
Rustam on

Hi! I used this, its very helpful for me. But it has problem with russian fonts. When I add information using cirilic fonts why it doesn’t saved in MySQl ?

Reply
Shahrukh Khan on

try to change the character of the column to utf_general_ci

Reply
Bewertung on

Hello,

how can I Change:
$page = easy_decrypt($_GET[“ID”]);
URLs sucks like: page.php?id=cGhwX0AjIUA=

How can I Change it to:
page.php?id=title

Thanks!

Reply
Shahrukh Khan on

in the anchor tags ie. do not use east_encrypt function, and instead of $page = easy_decrypt($_GET[“ID”]); use $page = $_GET[“ID”];

Reply
thecoderKing on

Hi there i am just wondering if you can tell me or if you have a guide that you can create your own Page Manager without mysql?

as i am looking for ways to make a non json list and i will need that

thanks 🙂

Reply
Shahrukh Khan on

for page manager you need to store some data anywhere, be it database (MySQL) or json Files or flat files. choice is yours. Database is the best.

Reply
muvi vivian on

I am from Uganda and am green in php. I got interested in php last month. how can I learn php and what recommendations do you have for me.

Reply
Shahrukh Khan on

try going through my basic php series. also lookout for php official website and try to learn from youtube, by creating some mini projects.

Reply
Shahrukh Khan on

do that directly through the database.

Reply
Almir on

Dear Sir,

I don’t know much about the function: getPageDetailsByName.

$pageDetails = getPageDetailsByName($currentPage);

Thanks a lot!

Reply
Shahrukh Khan on

its a custom function made by me to fetch data by page name.

Reply
arpit on

the file is not download so how i can

Reply
Shahrukh Khan on

at the end of tutorial, there’s a download button, its working fine.

Reply
Andres on

Hi Shahkruh,

Why didn’t you use the original css and js of the template you used from html5up.net?

Reply
Shahrukh Khan on

Yes I am use the original version only.

Reply
Aneeq on

Nice Article.

Reply
Shahrukh Khan on

Thanks

Reply
chi on

leaves out so many details, leaves a lot on assumption. Why not have complete step? I know apache basics, mysql basics. But this kind of project is so irrelevant

Reply
Shahrukh Khan on

hi. basically you get the source code of the project and its very basic meant for people willing to get started.

Reply
Qamar Ali on

Hey you should also explain how your source code is working. Btw good effort.

Reply
Shahrukh Khan on

Sure I will try to create another tutorial for the same, soon

Reply
Sabrina on

Thank you kindly for this demo. It is much appreciated!!!

Reply
abhishek on

how to download mysql and how to connect it with your website?

Reply
Shahrukh Khan on

download xampp, wamp server for windows pc

Reply
https://hyiprank.com on

This piece of writing provides clear idea in favor of the new users of blogging, that actually how
to do blogging and site-building.

Reply
seguro medico suiza on

Usually I ddo not learn post on blogs, however I wish to say that this write-up very compelled me to
trry and do it! Your writing taste hass been surprised me.
Thank you, very nice article.

Reply
nắp hố ga on

Hi there this is somewhat of off topic but I was wondering
if blogs use WYSIWYG editors or if you have to manually code with HTML.
I’m starting a blog soon but have no coding expertise so I wanted to get guidance from someone with experience.
Any help would be enormously appreciated!

Reply
Shahrukh Khan on

WordPress has all the stuff you need to kick start your blog in a matter of minutes. My best wishes for your blog.

Reply
Shadab Ahmad on

Nice Information

Reply
jasa seo bali on

It’s amazing for me to have a website, which is beneficial designed
for my know-how. thanks admin

Reply
Effat on

please Sir create tutorial and teach us how to create a website like this.
beeducated.pk

Reply
Shahrukh Khan on

I will try.

Reply
Chehak Gupta on

please tell me how to put username and password while opening the manage site link.
Thanks

Reply
Shahrukh Khan on

I dont understand your question.

Reply
Lenore on

Hurrah, that’s what I was exploring for, wha a information! existing
here at this web site, thanks admin of this site.

Reply
Shahrukh Khan on

you are welcome.

Reply
Ajinkya Sahane on

I am creating an ‘Animal Adoption’ website using php, html, mysqli.
I have details of all the pets uploaded by users in database named as ‘registration’ which consists of table named as ‘pet’ consisting of id,username,petname,petgender,description,petcity,pettype,imageType,imageData.
I have made 2 pages named ‘blank.php’ and ‘brief.php’.
blank.php is displaying all the petname and petimage from the database.
In page ‘brief.php’ I want to display all the information of particular pet on which the user clicks on pet photo.
But in the code I developed only 1st pets profile is visible even if I click the third pet photo.

Reply
https://vanphongchothuequan3sg.com/ on

Good way of describing, and good post to obtain information on the
topic of my presentation topic, which i am going to present in university.

Reply
vivek on

Nice post.
thank you for sharing such a useful information.

Reply
Shahrukh Khan on

Thanks

Reply
pink sheets on

This website was… how do you say it? Relevant!!
Finally I have found something that helped me. Thank you!

Reply
suhez khan on

Dear sir

my form is not working and how to insert contact us form value in database and sent email on my id

Reply
Shahrukh Khan on

what is your error message?

Reply
dodz on

how to upload it online so that everybody can view my websitew

Reply
Technerve Solutions on

Well Done !!! and i think you can also put a small websites to be made by using MVC architecture. It will help user to understand better about dynamic websites

Reply
Shahrukh Khan on

Thanks will try next time.

Reply
grace on

W0w, Thanks for putting so much effort to write this nice article I really appreciate your work.

Reply
tejkiran on

how to learn in web development and also php tell me sir

Reply
Shahrukh Khan on

Get started with HTML, CSS and basic CSS.
Then go for the basic PHP tutorials.
Everything is available on the internet for free.

Reply
Vaibhav Deshpande on

Thanks for crafting this information for us. This is the best blog I’ve ever read. I’m humbled and grateful.

Reply
free php projects on

Thanks designed for sharing such a nice opinion, article is
good, thats why i have read it completely

Reply
Victor Adegbite on

Nice job,
How can I change the template used?

Reply
Shahrukh Khan on

edit the codes directly.

Reply
merouane on

many thanks bro

Reply
merouane on

i haven’t done this for a long time so excuse my silly question
i would like to try your demo in my computer so do i have to install Apache server first?
many thanks

Reply
Shahrukh Khan on

yes, apache, PHP and mysql

Reply
Noticias Ahora on

Very good article. I will be experiencing many of these
issues as well..

Reply
neeraj pant on

sir muje php,mysql aati hai par muje pat nhi ki konsa page pehle build kru so please help me sir

Reply
Shahrukh Khan on

index.php ye pehla page hai.

Reply
Ambuj on

Fatal error: Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’ in C:\wamp\www\simple-website\libs\config.php on line 39
I am getting this error sir

Reply
Issa on

How can I create a website with php and HTML using cpanel

Reply
Richbu on

Hi I am new to web designing..I used the nulled theme modified in PHP and use xampp mysql for database.o have stored my images in website folder nbvo via a SQL query I fetch it…bit site becomes too slow…as images are not loaded quickly can anyone guide me properly.

Reply
Prince godswill on

Im stil a beginner in this html an php coding,i need an online teacher,pls help me

Reply
Shahrukh Khan on

What help do you need

Reply
Abdul Khader on

Please tell me How to Create this Table

CREATE TABLE IF NOT EXISTS `mp_pages` (
`page_id` int(11) NOT NULL AUTO_INCREMENT,
`page_title` varchar(255) NOT NULL,
`page_desc` text,
`meta_keywords` varchar(255) DEFAULT NULL,
`meta_desc` varchar(255) DEFAULT NULL,
`sort_order` int(11) NOT NULL DEFAULT ‘0’,
`parent` varchar(255) NOT NULL DEFAULT ‘0’,
`status` enum(‘A’,’I’) NOT NULL DEFAULT ‘A’,
`page_alias` varchar(255) DEFAULT NULL,
PRIMARY KEY (`page_id`),
UNIQUE KEY `page_name` (`page_alias`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;

Reply
Shahrukh Khan on

copy and paste the code to your phpmyadmin

Reply
santhosh on

SQLSTATE[HY000] [1049] Unknown database ‘simple-website’

Reply
Shahrukh Khan on

first create the database and then use it.

Reply
isik on

thanks

Reply
Sunil Bhimaji Sangale on

This is Sunil. I m already having two domains and using wordpress. But due to lots of paid plugins I want to switch my one of the domain on coding platform. I downloaded and tested you simple website, but it did not work. Can you guide?

Reply
Shahrukh Khan on

What issue are you facing?

Reply
Sunil on

Please share any latest bootstrap dynamic website source code. I want just book a domain and paste source through file manager and update website data through admin login

Reply
Hasan on

I will try.

Reply
Aaa on

Thank you very much for your effort. I would like to ask you if you can make this miniwebsite work with postgresql? Can you make a version in this regard?

Reply
Hasan on

Sorry for the late reply, I am no plan to make this project in PostgreSQL as for now due to my commitments at work.

Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.