title: MySQL: How to do foreign keys?
body: <p>I wish to have a foreign key in a table but I have no idea how to do it. I wish have a UserID Column in the "wall" table so that I can link back and get the userid's details etc. How would i go about doing this?</p>
  
  <p>Wall Table:
  <a href="http://img821.imageshack.us/img821/7701/screenshot20100808at010.png" rel="nofollow noreferrer">alt text http://img821.imageshack.us/img821/7701/screenshot20100808at010.png</a></p>
  
  <p>Users Table:
  <a href="http://img375.imageshack.us/img375/7701/screenshot20100808at010.png" rel="nofollow noreferrer">alt text http://img375.imageshack.us/img375/7701/screenshot20100808at010.png</a></p>