I've created one select list field in my CCK content.
Then, I'd like to insert dynamically from database in that field.
So, i wrote one php code to pull data from the database and put it in PHP Code under "Allowed value list" field.
But when i checked from the content, it doesn't work and it doesn't get any data from database.
I checked my coding and it is fine.
How can i fix the problem?
Any suggestion is appreciated.
Thanks in advance.
My php coding is
***************************************************************
Regardless of the type of browser being used, visitors to my site see the data in their address bar change from www.example.com to its IP number after they've clicked on a link or two. Anyone know where the problem may be ... is it with my Drupal configuration or is it something that I'll have to hash out with my webhost?
(And would this be a symptom of the same problem that causes all users of this site to have to login twice for their username to take hold?)
Using the snippet under "Show block only to a particular user:" (about halfway down the page) at http://drupal.org/node/64135, I had no problem making a block visible only to myself.
But can this php snippet be used to show it to a select few users, by adding multiple user numbers?
That is, if I change
if ($user->uid == 1){
to
if ($user->uid == 1,10,18,23){
will only the four users listed be able to see it?
Just when I thought I was done with my site's upgrade from 4.7 to 5.2, I found yet another problem when I added my first node. I think this must be something easy to fix, but I haven't found it yet.
My problem is that when the node is rendered, the path for the image appears to have an extra thing on the path... the path now appears as "mysite.com/content/files" instead of "mysite/files" which is the place where they are really being uploaded. Imagecache can't either see them because of this path problem.