<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yuanming</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yuanming"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Yuanming"/>
	<updated>2026-05-23T00:17:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Talk:Accessing_the_database_using_JDatabase&amp;diff=13516</id>
		<title>Talk:Accessing the database using JDatabase</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Talk:Accessing_the_database_using_JDatabase&amp;diff=13516"/>
		<updated>2009-03-16T05:53:02Z</updated>

		<summary type="html">&lt;p&gt;Yuanming: New page: Can anyone provide more info regarding insertObject()? I just have no idea of how to insert a row into a table. I tried to do the following but it just doesn&amp;#039;t work:  $db	= &amp;amp; JFactory::get...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can anyone provide more info regarding insertObject()?&lt;br /&gt;
I just have no idea of how to insert a row into a table. I tried to do the following but it just doesn&#039;t work:&lt;br /&gt;
&lt;br /&gt;
$db	= &amp;amp; JFactory::getDBO();&lt;br /&gt;
$query =  &amp;quot;insert into #__my_table(field1, field2) values (&#039;&amp;quot;.$value1.&amp;quot;&#039;,&#039;&amp;quot;.$value2.&amp;quot;&#039;)&amp;quot;;&lt;br /&gt;
echo $query;&lt;br /&gt;
$db-&amp;gt;setQuery( $query );&lt;br /&gt;
return($db-&amp;gt;Query());&lt;br /&gt;
&lt;br /&gt;
Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;/div&gt;</summary>
		<author><name>Yuanming</name></author>
	</entry>
</feed>