Looping with a php table
<p>i'm making a table on my website where data is pulled out of my database.</p>

<p>Basically what i want it to do is to check for the column where the referrer is $session and on that same row it will look for the column 'username' and it will echo the username column into the table onto the website.</p>

<p>What im doing is a refer a friend system but basically you can view the people you referred, so when you referred someone it would insert your name '$session' into the referrer column and now i just need it to grab that out of the database so people can see who they referred 'username' column.</p>

<p>Sorry for the confusing wording.</p>

<p>Code here</p>

<p><a href="http://pastebin.com/rhYvtA2L" rel="nofollow">http://pastebin.com/rhYvtA2L</a></p>
