help me to write php code for this MySQL sql
<pre><code>CREATE TABLE articles
( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
, title VARCHAR(99) NOT NULL
, dateposted DATE NOT NULL
, author VARCHAR(99) NOT NULL
);
CREATE TABLE article_rel
( this_article INTEGER NOT NULL REFERENCES articles (id)
, related_article INTEGER NOT NULL REFERENCES articles (id) 
, PRIMARY KEY (this_article,related_article)
);
</code></pre>

<p>I am building article site, where i want to show related article. I can write code for articles table , just scratching heads how to do with article_rel table.</p>
