News list of PHP native development news station (1)
We have imported all the background template files into our project files before, and the login has been completed. Since we are going to be a news station, we must have a news management page in the background!
#As shown in the picture above, we regard content management as our news management page!
Then the first thing we need to do is create a data table! In the previous course, we have created our database, so now we start to create the data table of the news list. We first open the PHPmyadmin graphical management tool, then find the database of our project, and create the data table! I've already created it here!
You should know the meaning of creating these fields by looking at the fields here. Here we need to explain the category_id field, because our news has many categories, so we There is also a classification table at the back, and this field corresponds to the ID of the classification table behind us! The others are the title, author, content and other contents~!
Of course, you can also create the fields and data tables you need according to your own needs. I am just giving you a reference here~
Our preparation work is completed here~, In the next section we will start making the news list page~
##