<div>Hi All</div>
<div>I have a table <em>resubmt_skill_ids, </em>it has two coulmns, skillid (primary key) and skillname (unique key).</div>
<div>I have below code. , </div>
<div> </div>
<div><em>  $query_string = &quot;INSERT INTO resubmt_skill_ids (skillname) VALUES  (&#39;php&#39;), (&#39;sql&#39;)  &quot;  ;<br>  $result = db_query($query_string);<br>  <br>  if($result)<br>  {<br>   while($obj = </em><em><strong>db_fetch_array($result))<br>
</strong>   {</em></div>
<div><em> </em></div>
<div><em>           //DO Other stuff</em></div>
<div> </div>
<div>With this I get the warning:  </div>
<div><font color="#ff0000">warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in C:\MyWeb6.20\wamp\www\livejobs1\includes\database.mysqli.inc on line 151.</font></div>
<div> </div>
<div>As per Drupal documentation db_query should return &quot;A database query result resource, or FALSE if the query was not executed correctly.&quot;</div>
<div>So if($result) condition turns out to be true, can I guess that there will be atleast 1 record in $result.</div>
<div> </div>
<div>I found data is written to table, and want to have newly written data (both skillname and corresponding skillid), can I extract the data from $result, or I need to do one more query to get the newly written data.</div>

<div> </div>
<div>Thanks Austin</div>