PHP login regis...LOGIN

PHP login registration and new database

Database Operation

We are using the integrated environment phpstudy

We will open mysql.exe first

1.png

Then we will see To

2.png

we need to enter the password, enter the password: root

3.png

In this way we will enter our database, below Let’s take a look at what’s in our database

Write command

4.png

##Create database

Let’s create a login database


5.png

How to know whether we have successfully created the login database

Method 1: Yes View on the web management side

Method 2: Use command; View all databases

Next we will create database tables

How to create data tables


Note: PRIMARY KEY (id) If the primary key is not set, it cannot be created.

7.png

In this way, our table will be created

Let's check on the web management side to see if there is a user table in the login database. If it exists, we have created it successfully

8.png


Next Section

<?php echo "欢迎学习登录注册"; ?>
submitReset Code
ChapterCourseware