This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Weird db_query result with a LEFT JOIN and multiple LIKEs

Does anyone have any insight into why this might be happening:

Using db_query, I execute the following query:

$result = db_query("SELECT * FROM c LEFT JOIN p ON (c.id=p.id) WHERE ((c.location LIKE '%%%s%%') OR (p.name LIKE '%%%s%%'))", $query;

...and it returns all of the rows in my table.

When I execute the same thing using a mysql_query setup instead of db_query

How to translate the default value

How to translate the default value number "3" or text in the module configuration (settings) page?

'#default_value' => variable_get('onthisdate_maxdisp', 3),

http://drupal.org/node/82967

How do I find the path my module is running from?

Hi, I'm writing a module to create nodes that I can copy and paste from XML. It's working great.

I've got everything working with libxml, but I'm tripping up on finding the path of my xsd in the module's directory.

I could use file_directory_path() and put the schema in the files directory, but that seems silly. I'd like to deliver the xsd file with the other module files.

How does a module know where it's being run from in the file system? schemaValidate needs a full path, not a relative one... :-/

Mike

Captcha and Who's online block

I had some issues with my site last weekend with the comments and diabled the Captcha module during the troubleshooting process. I found it interesting that when Captcha was disabled, the number of online users being reported in the "Who's online" block dropped dramatically. When i re-enabled Captcha the number of users reported online returned to a higher level. Has anyone else observed this?

CCK Slideshow & views

Hi,

I'm having a problem with my slideshow that I created. The slideshow shows the first image but never moves onto the second and third images - not even when clicking the numbered links and it seems it gets stuck on the loader. Any help on getting this fixed would be greatly appreciated as I've been at it for hours and can't figure out what the problem could be. Thanks! :)

Searching modul for article with more than one page

Hi folks,

sorry for bad english, first :)

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions