problem writing .install file

Im trying to write a module.It has a .install file(a.install) which create a database table.
But when i try to install the module it says that db table does not exist.

<?php
function a_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {a_server} (
a_id varchar(32) NOT NULL,
PRIMARY KEY (a_id)
);");
break;
}
}

function search_uninstall() {
db_query('DROP TABLE {a_server}');
}

how to update a modules to adapt to drupal 6

Hello,

I have just installed drupal 6, but there are few modules to use. I would like to install a module in my Drupal 6, but it do'es work. It shows a message:"This version is incompatible with the 6.1 version of Drupal core".

Is't possible tomodify the modules to adapt the 6.1 version of Drupal? If so, how to do it? Thank you very much in advance for your help.

How on earth do I use Reports?

I can't seem to gather any data in Reports.
Do I need to activate something?
Please help.

Linking a Content Type (Music Album) to a Master Content Type (Artist)?

Hello,

I'm looking to achieve cross-linking two different content-types with one another and was wondering if it's possible. I know by using taxonomy, I can add tags and such to perform a similar function, but I would like to keep tags separates from this function.

My site consists of news, album reviews, and anything else pertaining to music in general. What I basically want to do is to link these news posts to an artist. In addition though, I want the artists to have their own independent profiles that will be published via a content-type.

anybody know what minor change is required for these snippets to work in d6?

i'm looking to build two blocks that will display most recent items (e.g. from a vocabulary) and found two very relevant snippets:

show a list of X most recent nodes from any of several categories (terms)
http://drupal.org/node/44854

and change to filter by vocabulary instead of term - this is of particular interest for creating a new block for recent items for a custom content type with its own vocabulary!

http://drupal.org/node/191636

register_globals is enabled. Not working even though I turn it off. L(-_-#)???

Hello Everyone.
I am trying to install Drupal for the first time. I got bored of Wordpress for its slowness, but I am having a problem installing.

I get this error:
register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register globals Enabled ('1'))

I looked at my .htaccess file and I see that the register_globals is off! (0)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x