title: MySQL - get information from table b using table a as where =
body: <p>I have this code here, but it's not working I just get "No Process" on my display, I am trying to get the image URL from table B while using the title reference from table A. Any Help on what i am doing wrong? </p>
  
  <pre><code>&lt;?php
  $gettop="SELECT * FROM feeddb ORDER BY ID DESC LIMIT 0 , 3";
  $gettop2=mysql_query($gettop) or die("Processing Error");
  while($gettop3=mysql_fetch_array($gettop2))
  {
  echo "&lt;div class='rt'&gt;&lt;/div&gt;";
  echo "&lt;div class='right_articles'&gt;";
  $getimg="SELECT * FROM feedus where tit=".$gettop3['title'];
  $getimg2=mysql_query($getimg) or die("No Process");
  $getimg3=mysql_query_fetch_array($getimg2);
  echo "&lt;p&gt;&lt;img src='$getimg3[img]' width='60' height='60' class='image' /&gt;&lt;b&gt;Feed: $gettop3[title]&lt;/b&gt;&lt;br/&gt;$gettop3[feedpost]&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;";
  echo "&lt;/div&gt;";
  }
  ?&gt;
  </code></pre>