Hi,
> Ok, I cannot figure why this won't go through. I've tried with
> both inherited and required authentication, and by stripping it down to as
> much as the example in the documentation, but it still will not create a
> new article with this.
>
> <?
> $up=123;
> $topic=240;
> $name="demo article";
> $title = "someone";
> $abstract="whatnot goes here";
> $content="something";
> $author=1;
> $url="http://www.somewhereelsethanhere.com";
> $calstart="0000-00-00";
> $caldays=0;
> $icon=0;
> $view=0;
> $print=0;
> $extra1="";
> $extra2="";
> $extra3="";
> $type=0;
>
> $article = mgd_create_article( $up, $topic, $name, $title,
> $abstract, $content,
> $author, $url, $calstart, $caldays, $icon,
> $view, $print, $extra1, $extra2, $extra3,
> $type);
> echo "created article '$title' with id $article.";
> ?>
The $up and $topic should point to an existing article and parent topic
respectively. My bold guess is that article with id 123 doesn't exist. I
assume you are running a version of Midgard that doesn't include the
mgd_errno and mgd_errstr functions yet. If the machine you are running
Midgard on is not a production machine, you might considering upgrading to
the 1.4b4 beta release. This version includes these new functions that are a
great help in understanding why something doesn't work.
>
> If anyone could tell me why this doesn't work and/or what would, I'd be
> obliged.
Hope I was of some help,
Armand.
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]