Inner join

This is the result I get from
SELECT * FROM messages
http://coronadoshores.ca/admin/list_messages.php
I want the topic to be the actual topic and not its id, since im kind of new to joins, is this the best way?
SELECT messages.mess_id, messages.topic_id, messages.subject, messages.display, messages.created, messages.message_txt,
topics.topic
FROM messages
INNER JOIN topics
ON messages.topic_id = topics.topic_id;


(attached is the topics table in phpmyadmin)

yes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.