raf
Active Member
How can i get character name by id ?
i have query to get latest news posts from forum:
is the id of author
i've been already looking into forum.php file to check how it's done in there, but can't reproduce it in latestnews.php ;s
i have query to get latest news posts from forum:
PHP:
$query = $SQL->query("SELECT `z_forum`.`icon_id`,`z_forum`.`post_topic`, `z_forum`.`author_guid`, `z_forum`.`post_date`, `z_forum`.`post_text`, `z_forum`.`id`, `z_forum`.`replies`, `players`.`name` FROM `z_forum`, `players` WHERE `section` = '1' AND `z_forum`.`id` = `first_post` AND `players`.`id` = `z_forum`.`author_guid` ORDER BY `post_date` DESC LIMIT 6;")->fetchAll();
PHP:
$author_guid
i've been already looking into forum.php file to check how it's done in there, but can't reproduce it in latestnews.php ;s
Last edited: