title: PHP MySQL INSERT return value with one query execution
body: <p>Is there anything returned from MySQL/PHP on a INSERT query being executed? Here is my function which I have in a CLASS.</p>
  
  <pre><code>function mysqlQuery($query) {
     // Gets the results from the query
     $results = mysql_query($query, $this-&gt;connection);
  
     // Loops through the queried results as an multi-dimensional array
     while($rows = mysql_fetch_array($results, MYSQL_ASSOC)) {
        // Push results to single array
        $rs[] = $rows;
     }
  
     // Return results as array
     return $rs;
  }
  </code></pre>
  
  <p>This is how I call the function</p>
  
  <pre><code>$rs = $dbh-&gt;mysqlQuery($query);
  </code></pre>
  
  <p>But executing a <code>INSERT</code> query the <code>$rs</code> returns nothing. Does my function need help or is this the default behavior? Any tips would be helpful as well.</p>