Normally the global $user-uid should be empty (ie, I am guessing the $user variable just shouldn't exist!), at least it is on my test server.
But for some stupid reason on my main server it exists and is causing all sorts of havoc, as can be seen by visiting this link http://madivad.com/node/101
The preformmated box on that page contains the code:
I am working on the new birthday reminder module. I am storing all users date of births in a database table and now I am trying to create a script to list upcoming birthdays. I want to do it in SQL for performance reasons, as if a site has hundreds/thousands of users it would be better for the database to search and list the results in order and not with PHP.
I'm totaly new to Drupal and PHP. I'm trying to follow and expand the example_node code just to get to know PHP and Drupal. I've struggled a few day to figure out how to insert data from the new multidimensional form array into my database. Here's what I've got.
Any help? It seems I could get the 'cron' to run, so I got a lot of update records of the news aggregator (every hour). I try to make the log file to be cleaned every 6 hour, but apparently it is not working. What's wrong? Thanks!
I am really lost with Drupal. I have been trying to setup a website for two months using Drupal and it seems easier just to use a simple program like MS Word to do it instead!
The following line is extracted from the 'Rolling your own system vs. using Drupal - The Drupal path is fun and educational' section on the Drupal site:
"With Drupal, the framework is in place and you can focus on the 'meat' of your project."
I know that Drupal is much more functional but I am yet to realise it's potential for managing web-content :(