"John P . Looney" wrote:
> Probably not. You don't need to create() and article before doing stuff
> with searchparameters then ? BTW, should this work:
No.
> if($argv[0]=="url") {
> $article = mgd_get_article();
> if($article->searchparameters(" where url = '$argv[1]'",0)) {
> $article=$article->fetch();
> } else {
> echo "Search failed<BR>";
> }
> }
>
> Always returns "search failed". I've tryed things like " where id=17",
> when I know there is an article id 17 - and it still fails. I must be
> using it wrongly, but don't have any example code to tell me otherwise...
searchparameters only searches the parameter table, so the only fields
you
can use in your query are id (parameter id), tablename/oid (table/id of
object it's attached to), domain, name. value amd sitegroup.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]