There are, for example, the output of comments from mysql:
function get_comments() { for(...) { $id_author = $uinfo[$i][3]; // id автора, оставившегося комментарий $text_comment = $uinfo[$i][2]; // текст комментария echo "<тут например отобразить аватар юзера> $text_comment"; } }
So, I wanted to know, you must first write a function to get the avatar of a certain user, and then instead of <here, for example, display the avatar of the user> substitute a function like: user_ava($id_author)
. Is it true or not? If not, which method is the right one?