Are you making fun of me? If you don't please excuse my tone, but it 
looked that way. So, let me start it again, I may have been unclear in 
the first place:
1. I know how parameters work;
2. I have implemented a solution working with parameters;
3. I know I can't use $object->search_parameters() because of the quote 
in the manual I was referring to in the original mail and confirmed I 
knew about in the second mail - now I'm confirming the third time;
4. I know what table to look for, I know the SQL syntax, I know the 
fields, I know the PHP, I know everything I need to know for this little 
piece of code to work on *my* machine.

What I do NOT know is only where Midgard stores the database credentials 
so I can port my code to other machines using another database, username 
and password without having to change this information in the code.

Can you point me in the right direction regarding this issue?

Thank you!

Bogdan

pp wrote:

>On Tue, 21 May 2002 16:32:47 +0300
>Bogdan Stancescu <[EMAIL PROTECTED]> wrote:
>
>>pp wrote:
>>
>>>>$object->search_parameters() function which is precisely what I'm 
>>>>looking for, but the remark in the documentation was not such a good 
>>>>
>>>AFAIR this function is signed as "no one knows if it works and if it will be in 
>>>further releases"
>>>
>>Precisely!
>>
>
>from manual:
>" This is an experimental method. Its interface may change. It may even go away 
>completely. Not to
>    be used in any production site. "
>
>>Yes, I know that - but as I said in the original message, I don't want 
>>to hardcode the database, username and password in the code - I would 
>>like to use the same variables as Midgard/Nadmin does in order to make 
>>the application portable.
>>
>
> You may store login and pass in any snippet to avoid display it in any error.
> Besides If person is logged to midgard , login and pass is send per page.
>
> 
>
>>>What exactly You want to search for? domain, name, values?
>>>
>>I know exactly what I am looking for, and I know how to code it, that's 
>>
>
>But I do not know and I do not know how to help You :)
> 
>
>>If your question was out of curiosity, what I have is articles referring 
>>to other articles by guid via parameters - and I want to be able to tell 
>>if a certain article is being referred to by any other article in the 
>>database.
>>
>
>
>One article - You may use up field 
>More articles - create parameters
>
>domain - references
>name - article id
>value - something 
>
>$list    = $article->listparameters(references);
>
>
>or replace name and values to Your need.
>And look at example parameters list and fetch
>it is clear and easy :)
>http://www.midgard-project.org/manual/en/method.object-listparameters.php
>
>Piotras
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to