Hướng dẫn tạo một bảng upload ảnh, image (ok)

Create Post, Upload Image, Update Post && image

C:\Users\Administrator\Downloads\wp_images.sql

-- phpMyAdmin SQL Dump
-- version 5.1.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 31, 2022 at 08:37 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `images`
--
-- --------------------------------------------------------
--
-- Table structure for table `wp_images`
--
CREATE TABLE `wp_images` (
  `id` bigint(20) NOT NULL,
  `image_name` varchar(255) NOT NULL,
  `user_id` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `wp_images`
--
ALTER TABLE `wp_images`
  ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `wp_images`
--
ALTER TABLE `wp_images`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

File .wpress

Create Post, Upload image

Update Post, Image 😒

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\functions.php

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\page-create.php

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\assets\css\custom.scss

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\single.php

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\assets\js\custom.js

C:\xampp\htdocs\images\wp-content\themes\twentytwentyone\header.php

Last updated

Was this helpful?