In the original library function, there is no method to obtain the display of a single comment. The following is added
public static function single($id){ global $db; return $db->query("SELECT * FROM `{$db->prefix}comment` WHERE `id` = '{$id}'",1); }
Output the array and call it in the template
#include "stdio.h"
main()
{
int a[20],i;//Here it is assumed that the array has 20 elements.
for(i=0;i<20;i++)
scanf("%d",&a[i]);//The elements of the array here are entered from the keyboard.
for(i=0;i<20;i++)
{
printf("%5d",a[i]);
if(i%5==0)
printf("/n");//Output a newline if it reaches 5 numbers.
}
}
require function, I don’t know the details, but it’s very simple to use js