0
によってフェッチ?連想配列
$threads = select_Query('SELECT thread.id, thread.title, thread.content, author.username, author.id
FROM thread INNER JOIN author
ON author_id = author.id', $link);
によってフェッチ?連想配列
$threads = select_Query('SELECT thread.id, thread.title, thread.content, author.username, author.id
FROM thread INNER JOIN author
ON author_id = author.id', $link);
あなたは、列名の曖昧さを解決するために列の別名を使用することができます。
SELECT thread.id AS t_id, thread.title, thread.content, author.username, author.id AS a_id
FROM thread INNER JOIN author
ON author_id = author.id
はその後、それぞれ$row['t_id']
と$row['a_id']
として、あなたのPHPの配列でエイリアスを参照します。