hmmmm..... I answer to myself ;)))

> 
> code-global
> <? $uzer = mgd_auth_midgard (bla,bla);
>  if (!$uzer) {echo "user jest.<br>";
>   } else {
>   echo "ni ma usera";
>    }
>  ?>
> 
> and main content:
> 
> $topic1 = mgd_create_topic(144222,$something,'1','1',1,'2');
>  if(!$topic1) { echo "not OK.<br>";
>                           } else {
>                            echo "OK";
>                          }
> till now works fine
> 
> $up       = "";
> $topic    = $something ;

And here is the main problem. I have to get topic's ID I just created.
should replace $something for $topic1? But it seems not to work.

>  $name     = name;
> $title    = "&(article.title);";
> /* BTW I don't know how use it here */
> 
Yes, better way '$article->title' :)

> $abstract = "";
>  $content  = "";
>  $content .= "";
>  $content .= "";
>  $author   = 2;
>  $url      = "";
>  $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);
>     if( ! $article ) {
>              echo "Creation  '$title' failed.<br>\n";
>               } else {
>              echo "Created  '$title'"
>      }
> 
> And "Creation '$title' failed" everytime
> 
> Piotras
> 
> --
> http://www.milinski.com.pl
> http://www.infoglob.com
> http://agaipiotras.igk.pl
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
http://www.milinski.com.pl
http://www.infoglob.com
http://agaipiotras.igk.pl

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

Reply via email to