<?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: Call to undefined function db_query()</title>
	<atom:link href="http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html</link>
	<description>Blog on Web Design, CSS, CMS, SEO, PHP based shopping carts and other topics</description>
	<lastBuildDate>Tue, 20 Dec 2011 07:37:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: bob</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/comment-page-1#comment-383</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Wed, 17 Aug 2011 14:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comment-383</guid>
		<description>try to put the include code in a file situed in your root directory, because all files included in bootstrat.inc are included like that : &#039;./includes/blablabla.inc&#039;</description>
		<content:encoded><![CDATA[<p>try to put the include code in a file situed in your root directory, because all files included in bootstrat.inc are included like that : &#8216;./includes/blablabla.inc&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/comment-page-1#comment-48</link>
		<dc:creator>ibrahim</dc:creator>
		<pubDate>Thu, 04 Mar 2010 16:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comment-48</guid>
		<description>Hi:
I try to call function from drupal,s module file via standard ajax
but i get this error:
Call to undefined function  db_query()
also i set include statement for (database.inc,database.sql.inc,..) and other data base file but  it is not working 
please any help</description>
		<content:encoded><![CDATA[<p>Hi:<br />
I try to call function from drupal,s module file via standard ajax<br />
but i get this error:<br />
Call to undefined function  db_query()<br />
also i set include statement for (database.inc,database.sql.inc,..) and other data base file but  it is not working<br />
please any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavani</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/comment-page-1#comment-39</link>
		<dc:creator>pavani</dc:creator>
		<pubDate>Tue, 10 Nov 2009 22:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comment-39</guid>
		<description>&lt;a href=&quot;#comment-38&quot; rel=&quot;nofollow&quot;&gt;@Ajay&lt;/a&gt;, 

I have checked the path ...
since I cannot change the path in bootstrap.inc

I changed the dir to the drupal installation directory from the modules folder and then included rather specifying the path at the require_once

this worked...

$drupal_path = &quot;../&quot;;  // &lt;---- change this one to fit yours
   chdir($drupal_path);
  chdir($drupal_path);
  chdir($drupal_path);
  chdir($drupal_path);
require_once &quot;./includes/bootstrap.inc&quot;;


rather than 
require_once &quot;../../../../includes/bootstrap.inc&quot;;

thank you very much

Regards,
Pavani</description>
		<content:encoded><![CDATA[<p><a href="#comment-38" rel="nofollow">@Ajay</a>, </p>
<p>I have checked the path &#8230;<br />
since I cannot change the path in bootstrap.inc</p>
<p>I changed the dir to the drupal installation directory from the modules folder and then included rather specifying the path at the require_once</p>
<p>this worked&#8230;</p>
<p>$drupal_path = &#8220;../&#8221;;  // &lt;&#8212;- change this one to fit yours<br />
   chdir($drupal_path);<br />
  chdir($drupal_path);<br />
  chdir($drupal_path);<br />
  chdir($drupal_path);<br />
require_once &quot;./includes/bootstrap.inc&quot;;</p>
<p>rather than<br />
require_once &quot;../../../../includes/bootstrap.inc&quot;;</p>
<p>thank you very much</p>
<p>Regards,<br />
Pavani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/comment-page-1#comment-38</link>
		<dc:creator>Ajay</dc:creator>
		<pubDate>Mon, 09 Nov 2009 12:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comment-38</guid>
		<description>Can you check if you have this file ./includes/cahce.inc ?
Also could you check the path for the above file?</description>
		<content:encoded><![CDATA[<p>Can you check if you have this file ./includes/cahce.inc ?<br />
Also could you check the path for the above file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavani</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/comment-page-1#comment-37</link>
		<dc:creator>pavani</dc:creator>
		<pubDate>Mon, 09 Nov 2009 11:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comment-37</guid>
		<description>Hi,

I am new to drupal created a module for that I need to execute database queries in a .php file in that module folder.

I tried to implement the above code but I am getting a error that ./includes/cahce.inc not found error.

Can you help me out

Regards,
Pavani</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am new to drupal created a module for that I need to execute database queries in a .php file in that module folder.</p>
<p>I tried to implement the above code but I am getting a error that ./includes/cahce.inc not found error.</p>
<p>Can you help me out</p>
<p>Regards,<br />
Pavani</p>
]]></content:encoded>
	</item>
</channel>
</rss>

