<?xml version="1.0" encoding="windows-1252"?>
<node id="480625" title="Re: how to use place holders?" created="2005-08-03 15:42:54" updated="2005-08-13 19:43:58">
<type id="11">
note</type>
<author id="169829">
Enlil</author>
<data>
<field name="doctext">
You need to pass some arguments to execute:

That is:
&lt;code&gt;
$INSERT_CURSOR-&gt;execute();
&lt;/code&gt;

Should be:
&lt;code&gt;
$INSERT_CURSOR-&gt;execute($some_var,$some_other_var);
&lt;/code&gt;

As you have two place holders but in your &lt;code&gt;$INSERT_CURSOR&lt;/code&gt; but no variables bound to them when you call execute it.
Note that in the above the variables &lt;code&gt;$some_var&lt;/code&gt;, and &lt;code&gt;$some_other_var&lt;/code&gt; relate to the two ? in your statement.

Have a look at: The [http://search.cpan.org/~timb/DBI-1.48/DBI.pm#Placeholders_and_Bind_Values|DBI Documention on Placeholders]&lt;p&gt;-enlil</field>
<field name="root_node">
480614</field>
<field name="parent_node">
480614</field>
</data>
</node>
