On Sun, Feb 18, 2001 at 06:54:49PM +0100, Emiliano mentioned:
> John P . Looney wrote:
> > } else if ($argv[0]=="static") {
> >     $article = mgd_get_article();
> >     $article->create();
> Are you sure you want this? It will create an article with all fields
> set to empty.

 Probably not. You don't need to create() and article before doing stuff
with searchparameters then ? BTW, should this work:

 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...

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software

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

Reply via email to