How to realize the Web Page Preview function by PHP

premise: to generate a landing page according to a template, DB stores only the pictures or text information to be replaced.

< hr >
  1. to make an online landing page creation tool, how to realize the preview function after the H5 page is finished, similar to Wechat"s article preview function?
  2. how to publish a landing page;
Mar.10,2021

can be saved as a draft first, access with parameters such as preview=1, and access draft data to preview, but online draft data will not be displayed.

of course, add the corresponding unique id. If id is afraid of being guessed, for example, with increasing numbers, it can be replaced with encrypted strings, so it is not easy to be accessed by guesses.

for reference.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2bc9e-2babd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2bc9e-2babd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?