uh!
#@$%&*^!@!!!!!!
I will kill myself today.
$article_created = mgd_list_topic_articles ($exist->id);
$duplicate = 0;
while (!$duplicate && $article_created && $article_created->fetch()) {
$duplicate = ($article_created->title == $article->title);
}
if ($duplicate) { echo "powod" . mgd_errstr(); }
else
{
$topics = $exist->id;
$name = $article->title;
$title = $article->name;
$abstract = 1;
$content = $article->content;
/* $content .= 2; */
/* $content .= 2; */
$author = $article->author;
$url = $article->url;
$calstart = 2;
$caldays = 2;
$icon = $article->icon;
$view = $article->view;
$print = $article->print;
$extra1 = $article->extra1;
$extra2 = $article->extra2;
$extra3 = $article->extra3;
$type = $article->type;
$prodkosz = mgd_create_article( 0, $topics, $name, $title, $abstract, $content,
$author, $url, $calstart, $caldays, $icon,
$view, $print, $extra1, $extra2, $extra3,
$type);
if( ! $prodkosz )
{ echo "powod2" . mgd_errstr();
}
mgd_errstr return "Name exists"
of course all articles have empty name , I need their title.
What to do?
Piotras
_________________________
http://www.infoglob.pl/sklep
http://www.milinski.com.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]