The problem of node operation mysql querying the corresponding columns according to id

make a list of articles, and then enter the details according to the id of the article.
now I have a problem, that is, when my article list jumps to article details according to id, the article details get id and then look up the corresponding columns according to id.
you can see that my output sql statement has two different id, but both are the same variable. The first output is dynamic, while the second is always the id, checked for the first time. Why?
now I can only get the id column of the first click, and click on other articles to get the id of the first click.

Mar.10,2021
The problem of

is the problem of function callbacks. Why do you want to do routing nesting? The req and res of the two requests are different, and coupled with the calling mechanism of the javascript callback function, the sql variables will overlap.

  • About the problem of mySQL connection

    first of all, the system uses the manjaro (linux) system. I installed mySQL, in the project directory, but when I node timetrack_server.js the file, I made the following error: home dema codeSpace studyNode testMySQL timetrack_server.js:49 if ...

    Jan.31,2022
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-1e4bd04-445ed.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-1e4bd04-445ed.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?