<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Inserts and Updates</title>
	<atom:link href="http://www.itamer.com/inserts-and-updates/202/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itamer.com/inserts-and-updates/202/</link>
	<description>Sarah King&#039;s blog and programming examples</description>
	<lastBuildDate>Sun, 22 Jan 2012 08:06:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: sarahk</title>
		<link>http://www.itamer.com/inserts-and-updates/202/comment-page-1/#comment-1442</link>
		<dc:creator>sarahk</dc:creator>
		<pubDate>Sat, 31 Dec 2005 23:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://sarahk.pcpropertymanager.com/blog/?p=202#comment-1442</guid>
		<description>No, it&#039;s always best to avoid using &quot;reserved words&quot; in a column, that includes words like &quot;order&quot;.

The syntax to use should include ticks ` such as

&lt;code&gt;INSERT INTO `stay` (`from`,`to`) VALUES (&#039;2005-12-05&#039;, &#039;2005-12-07&#039;)&lt;/code&gt;

The ticks tell mysql that the text is a column or table name, and not a command.

While you can use $database directly it&#039;s useful to use the classes and much quicker to code and debug.

I&#039;ve got one site on &lt;a href=&quot;http://www.joomla.org/&quot;&gt;Joomla&lt;/a&gt; and so far haven&#039;t found any clashes with &lt;a href=&quot;http://www.mamboserver.com/&quot;&gt;Mambo&lt;/a&gt; code. Certainly nothing so far as the way the database is handled.</description>
		<content:encoded><![CDATA[<p>No, it&#8217;s always best to avoid using &#8220;reserved words&#8221; in a column, that includes words like &#8220;order&#8221;.</p>
<p>The syntax to use should include ticks ` such as</p>
<p><code>INSERT INTO `stay` (`from`,`to`) VALUES ('2005-12-05', '2005-12-07')</code></p>
<p>The ticks tell mysql that the text is a column or table name, and not a command.</p>
<p>While you can use $database directly it&#8217;s useful to use the classes and much quicker to code and debug.</p>
<p>I&#8217;ve got one site on <a href="http://www.joomla.org/">Joomla</a> and so far haven&#8217;t found any clashes with <a href="http://www.mamboserver.com/">Mambo</a> code. Certainly nothing so far as the way the database is handled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calvin</title>
		<link>http://www.itamer.com/inserts-and-updates/202/comment-page-1/#comment-1441</link>
		<dc:creator>calvin</dc:creator>
		<pubDate>Sat, 31 Dec 2005 22:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://sarahk.pcpropertymanager.com/blog/?p=202#comment-1441</guid>
		<description>It seems that using &quot;from&quot; as a field with php and mysql isnt good, this is the main problem-solved.

But this classfile isnt necessary! and Mambo 4.5.3 doesnt seem like it is any longer the same as joomla.

Thanks for your offer of help.

calvin</description>
		<content:encoded><![CDATA[<p>It seems that using &#8220;from&#8221; as a field with php and mysql isnt good, this is the main problem-solved.</p>
<p>But this classfile isnt necessary! and Mambo 4.5.3 doesnt seem like it is any longer the same as joomla.</p>
<p>Thanks for your offer of help.</p>
<p>calvin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calvin</title>
		<link>http://www.itamer.com/inserts-and-updates/202/comment-page-1/#comment-1439</link>
		<dc:creator>calvin</dc:creator>
		<pubDate>Sat, 31 Dec 2005 12:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://sarahk.pcpropertymanager.com/blog/?p=202#comment-1439</guid>
		<description>I have the following error upon further examination AND the original error which suggests sql syntax, however people on the forums cant see a problem with it
error

Warning: Missing argument 1 for journal::journal() in C:\Uniform3_1_1s\www\landedAt\components\com_journal\journal.class.php on line 7
hiDB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;from,to) VALUES (&#039;2005-12-05&#039;, &#039;2005-12-07&#039;)&#039; at line 1 SQL=INSERT INTO stay (from,to) VALUES (&#039;2005-12-05&#039;, &#039;2005-12-07&#039;)

error-END

I have reason to doubt that I need this classfile and can use $database on its own.
thanks for suggestions.</description>
		<content:encoded><![CDATA[<p>I have the following error upon further examination AND the original error which suggests sql syntax, however people on the forums cant see a problem with it<br />
error</p>
<p>Warning: Missing argument 1 for journal::journal() in C:\Uniform3_1_1s\www\landedAt\components\com_journal\journal.class.php on line 7<br />
hiDB function failed with error number 1064<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;from,to) VALUES (&#8217;2005-12-05&#8242;, &#8217;2005-12-07&#8242;)&#8217; at line 1 SQL=INSERT INTO stay (from,to) VALUES (&#8217;2005-12-05&#8242;, &#8217;2005-12-07&#8242;)</p>
<p>error-END</p>
<p>I have reason to doubt that I need this classfile and can use $database on its own.<br />
thanks for suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calvin</title>
		<link>http://www.itamer.com/inserts-and-updates/202/comment-page-1/#comment-1438</link>
		<dc:creator>calvin</dc:creator>
		<pubDate>Sat, 31 Dec 2005 12:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://sarahk.pcpropertymanager.com/blog/?p=202#comment-1438</guid>
		<description>have solved the writting to the browser issue! silly me forgot the script tags &quot;&quot;.</description>
		<content:encoded><![CDATA[<p>have solved the writting to the browser issue! silly me forgot the script tags &#8220;&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calvin</title>
		<link>http://www.itamer.com/inserts-and-updates/202/comment-page-1/#comment-1437</link>
		<dc:creator>calvin</dc:creator>
		<pubDate>Sat, 31 Dec 2005 12:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://sarahk.pcpropertymanager.com/blog/?p=202#comment-1437</guid>
		<description>I am trying to use an example of this file with

	include(&quot;journal.class.php&quot;);
	new journal();

it is writing the classfile to the browser though and cant use the journal class. Could you let me know how to use this classfile?
I am simply trying to insert two values into a new table.
thanks
calvin</description>
		<content:encoded><![CDATA[<p>I am trying to use an example of this file with</p>
<p>	include(&#8220;journal.class.php&#8221;);<br />
	new journal();</p>
<p>it is writing the classfile to the browser though and cant use the journal class. Could you let me know how to use this classfile?<br />
I am simply trying to insert two values into a new table.<br />
thanks<br />
calvin</p>
]]></content:encoded>
	</item>
</channel>
</rss>

