title: How do I select multiple tables in one line?? and insert into?
body: <p>I would like to select multiple table in one query say like below and insert into multiple table:</p>
  
  <pre><code>$result = $db-&gt;sql_query("SELECT * FROM data1,data2,data3,data4 WHERE person='" .$name. "'");
  
  $row = $db-&gt;sql_fetchrow($result);
  $day = $row['regtime'];
  $days = (strtotime(date("Y-m-d")) - strtotime($row['regtime'])) / (60 * 60 * 24);
  if($row &gt; 0 &amp;&amp; $days &lt; 15){
  
  $row = ['name'];
  $row = ['age'];
  
  //etc
  
  }else { //do something 
  
  if ($row == 0 &amp;&amp; $name &gt; 0){
  $db-&gt;sql_query("INSERT INTO data1 ??????
  
  }
  </code></pre>
  
  <p>This seems problem as days are not been calculated hence it always process new data and not accessing stored data in table...</p>
  
  <p>Is there any way which this can get work??</p>