title: Merge Two MySQL Queries in one Array
body: <p>Purpose of this query is to retrieve a true image plus 3 random generated images from same table, then show them randomly. User(child) have to select correct image.</p>
  
  <p>Thanks</p>
  
  <pre><code>$sql= "SELECT * FROM `login` WHERE `user` = '$word'";
  " UNION"
  "SELECT * FROM `login` WHERE `user` != '$word' ORDER BY RAND() LIMIT 3";
  
  
  $row2=mysql_query($sql);
  
  $i=1;
  while ($r = mysql_fetch_array($row2))
  {
   echo '&lt;td&gt; ';
   echo '&lt;img src="sigg/'.$r['img'].'" width="130" height="130" /&gt;&lt;br&gt;';
   echo $r['user'];
   echo '&lt;/td&gt;';
     $i++;
   }
  </code></pre>