<br />
<b>Warning</b>:  Parameter 1 to Language::getMagic() expected to be a reference, value given in <b>/var/www/sda/2/c/digigrids/wiki/includes/StubObject.php</b> on line <b>58</b><br />
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://digigrids.free.fr/wiki/skins//common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>QueryUpdate Database functions - Historique des versions</title>
		<link>http://digigrids.free.fr/wiki/index.php?title=QueryUpdate_Database_functions&amp;action=history</link>
		<description>Historique pour cette page sur le wiki</description>
		<language>fr</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Mon, 17 Aug 2026 19:47:13 GMT</lastBuildDate>
		<item>
			<title>Djphil&amp;nbsp;:&amp;#32;Page créée avec « &lt;lsl&gt; //This is the data we want to put into the database in // a key/value pair with lists list dataKeys = [&quot;Key&quot;]; list dataValues = [&quot;TestData&quot;]; //We need a key to identi… »</title>
			<link>http://digigrids.free.fr/wiki/index.php?title=QueryUpdate_Database_functions&amp;diff=5647&amp;oldid=prev</link>
			<description>&lt;p&gt;Page créée avec « &amp;lt;lsl&amp;gt; //This is the data we want to put into the database in // a key/value pair with lists list dataKeys = [&amp;quot;Key&amp;quot;]; list dataValues = [&amp;quot;TestData&amp;quot;]; //We need a key to identi… »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;lsl&amp;gt;&lt;br /&gt;
//This is the data we want to put into the database in&lt;br /&gt;
// a key/value pair with lists&lt;br /&gt;
list dataKeys = [&amp;quot;Key&amp;quot;];&lt;br /&gt;
list dataValues = [&amp;quot;TestData&amp;quot;];&lt;br /&gt;
//We need a key to identify it when we pull it out&lt;br /&gt;
string Key = &amp;quot;TestKey&amp;quot;;&lt;br /&gt;
//Finally, we need some password so that other prims &lt;br /&gt;
// and users cannot access this info&lt;br /&gt;
string Token = &amp;quot;oiasjdf&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        //First, change the lists into an xml string so that it can go into the database easily&lt;br /&gt;
        string xmlDataToPutIntoTheDatabase = aaSerializeXML(dataKeys, dataValues);&lt;br /&gt;
        //Put the info in the database now&lt;br /&gt;
        aaUpdateDatabase(Key, xmlDataToPutIntoTheDatabase, Token);&lt;br /&gt;
    } &lt;br /&gt;
    touch_start(integer number)&lt;br /&gt;
    { &lt;br /&gt;
        //Now we need to retrieve the info from the database&lt;br /&gt;
        list queryData = aaQueryDatabase(Key, Token);&lt;br /&gt;
        //Now that we have the info, we need to pull the keys and values back out of the third value in the database.&lt;br /&gt;
        //The first value is the token, the second the Key, and the third, the value&lt;br /&gt;
        string retrievedXML = llList2String(queryData,2);&lt;br /&gt;
        //Pull the keys out of the xml&lt;br /&gt;
        list retrievedKeys = aaDeserializeXMLKeys(retrievedXML);&lt;br /&gt;
        //Pull the values out of the xml&lt;br /&gt;
        list retrievedValues = aaDeserializeXMLValues(retrievedXML);&lt;br /&gt;
        &lt;br /&gt;
        llSay(0,&amp;quot;Keys: &amp;quot; + retrievedKeys + &amp;quot;, Values: &amp;quot; + retrievedValues);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lsl&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 17 Sep 2012 17:35:56 GMT</pubDate>			<dc:creator>Djphil</dc:creator>			<comments>http://digigrids.free.fr/wiki/index.php?title=Discussion:QueryUpdate_Database_functions</comments>		</item>
	</channel>
</rss>