MySOL is a database. With PHP, default database is MySQL. Database is
needed to create any dynamic website or web application. Records or
information for any website is kept in database in the forms of tables.
Table is the collection of related data entries and it consist of columns and rows.
A row of information is called tuple.
What is Query?
Query is a question or a request. With the help of query you can show, add,edit and delete any record.
How to create database?
Its very simple, just open your database, create database as below:
1)Open link http://localhost/phpmyadmin.
2)Click on the database tab.
3)Give name of database and create like below.
For example, I have created a database called test. So
4) After that give the field names, data types and most important a primary key.
5) And also set your primary key to auto-increment as it will be auto-incremented as you add data from front-end.
Table is the collection of related data entries and it consist of columns and rows.
A row of information is called tuple.
What is Query?
Query is a question or a request. With the help of query you can show, add,edit and delete any record.
How to create database?
Its very simple, just open your database, create database as below:
1)Open link http://localhost/phpmyadmin.
2)Click on the database tab.
3)Give name of database and create like below.
now I will inside the database called test as below:
How to create tables?
1)Once you have created database, click on the database.For example, I have created a database called test. So
2) Create table on the database test.
3) Give table name and number of fields needed and click on create..4) After that give the field names, data types and most important a primary key.
5) And also set your primary key to auto-increment as it will be auto-incremented as you add data from front-end.
Comments
Post a Comment