Use mariadb (mysql) php to write an api for your own use.

the api I am talking to now is a request from others.
is to use curl to catch the opposite party http. I give it to the opposite party json
, and then the opposite party gives back to me json, and then I show it (using mongodb, nodejs)

).

it"s just that now I want to write a
for my own use, but is there a list template I can refer to with mysql (mariadb)
? What will the concept of
look like?
(what I have here is php, mysql)

Mar.04,2021

  1. list the API you requested from others
  2. request the above API
  3. Save the returned data to mysql

simple template. You can probably take a look at the official website Demo?. Or rookie tutorial this?
or choose a framework and go to MVC (if the requirements are appropriate).

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-1b32787-2b66b.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-1b32787-2b66b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?