Get a single website comment and output it in the form of array
- 2021-07-10 19:00:30
- OfStack
In the original library function, there is no method to get a single comment display, which is added as follows
public static function single($id){
global $db;
return $db->query("SELECT * FROM `{$db->prefix}comment` WHERE `id` = '{$id}'",1);
}
Output array, which can be called in the template