I'm getting the hang of it, but I am a bit confused with the terminology and would like some help with it.
First off why does
PHP Code:
if ( KvJumpToKey( DB, SID, true ) ) {
//some code here
}
work? This was taken from a tutorial, but I am a bit confused on how this works. From what I know, KvJumpToKey() isn't a boolean - it is a function. There is no truth value, so how would this statement execute?
Secondly - how would I search for a specific string within a file containing several trees? Would this work on a for loop? Let me elaborate:
PHP Code:
KvGetString(DB, "name", temp_name, sizeof(temp_name), "NULL");
would find the "name" string within our KvJumpToKey() within the DB handle, declared before.
How would I search every tree within DB to find a string within them?
Say, we wanted the string corresponding to the "command" placement within a txt file.
this "command" is within each one of the several trees in our database. each tree has a different name, so I wouldn't be able to increment by 1 or something.
I need the "command" from
"random name"
{
"value1" "user entered value"
"command" "clients value"
}
and from
"other name"
{
"value1" "user entered value"
"command" "clients value"
}
as well as
"random letters here"
{
"value1" "user entered value"
"command" "clients value"
}
etc.
__________________