What's the best way to perform a custom database query in Drupal and then work with the results? For example:
I want to hard-code a custom query into the page.tpl.php file that basically grabs all of the titles from the database and let's me manipulate them as I want. Logically, I would think it could look something like this:
$queries = drupal_database_query("SELECT * FROM node");
foreach ($queries as $query) {
echo $query->title . " ";
}
After what I suspect is a minor snafu on loding some code, I find myself with a completely functioning site but without an Administrator account.
I was able to run a database query which brought the site back online. Everything is apparently working fine, except for the fact that I cannot log in through my Administrator account. I am able to access the site through a test user account which I had established, however the user list does not include my Administrator account -- which leads me to believe it has completely disappeared.
I want a user to be able to select his/her company at registration/profile editing.
I already have dropdown lists for US State and that is a manageable 50 items. Each of those then becomes a hyperlink and people can click to see other "South Dakota" users, etc.
I have a DB of 27000 company names divided by state and town. How could I realistically present these to my users to choose from. Is there a module that exists for managing large amounts of data like this?
I don't use the trackback feature extensively on my site, but I just noticed that I have over 2000 SPAM in my trackback queue coming from these IPs in Russia;
81.95.144.66 ~ 81.95.144.70
Anyone else been getting hit by these IPs, and does anybody have any idea how 2000 SPAM trackbacks would get past the SPAM module which is configured (or at least I thought so) to pick up trackback spam?
I've noticed a serious issue with Garland when building menus (admin/build/menu) and having several menus displaying and perhaps a hundred or more menu items showing in total. Using Garland, Firefox's page rendering engine dies somewhere half way down the page and the page stops scrolling as you keep dragging the scrollbar, near the end of the page the scrolling starts to work again. Similarly, scrolling in Safari becomes a very choppy business. The problem goes away when I switch theme to Blue Marine. I'm running Mac OSX 10.4 on a MacBook.