I am trying to customize a Drupal 6.x module. The original module does not make any calls to the database, but the customized version needs to pull some data from the database. The query should take place with an AJAX call. So I am trying to make a data provider to receive the call, query the database, and return the result (some json).
For the data provider I need a link to the database, but I don't want to create the link in the script, rather I want to find the script where db connection values are stored and include that file. But I don't seem to have any success in finding the file. Where is it located in a typical Drupal installation?
P.S. I don't want to make this into a Drupal module and follow all the conventions to create _hook(), ... functions. I want to make it straight forward and old-school.