On 27.04.01 (11:17), Emiliano wrote:
> > $mgdArticle = mgd_get_article();
> > $mgdArticle->topic = $topic;
> > $mgdArticle->title = $title;
> > $mgdArticle->url = $url;
> > $mgdArticle->name = $keywords;
> > $mgdArticle->abstract = $abstract;
> > $mgdArticle->extra1 = $email;
> > $mgdArticle->author = $author->id;
> > if (! $mgdArticle->create()) {
> > $this->error = MIDHOO_ERROR_MIDGARD;
> > $this->errstr = mgd_errstr();
> > return(0);
> > }
> >
> > echo "ID: $mgdArticle->id";
>
> Create returns the ID of the article created. It does not, to
> my knowledge, set the ID on the object itself.
It does, as far as midgard-php3 is concerned. (Ingo, I
overlooked you PHP version in your first e-mail -- my dev server
runs still PHP3.)
I'll test the fix on PHP3 and then integrate it for next
release.
phr
--
Linksystem Muenchen GmbH [EMAIL PROTECTED]
Schloerstrasse 10 http://www.link-m.de
80634 Muenchen Tel. 089 / 890 518-0
We make the Net work. Fax 089 / 890 518-77
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: [midgard-user] $article->create() returns $article->id = 0
Philipp Rotmann, Linksystem Muenchen Fri, 27 Apr 2001 05:35:08 -0700
- [midgard-user] $article->create() ... Ingo Herz
- Re: [midgard-user] $article->... Emiliano
- Re: [midgard-user] $article-... Philipp Rotmann, Linksystem Muenchen
- Re: [midgard-user] $arti... Emiliano
- Re: [midgard-user] $... Ingo Herz
