Hello!
Maybe I made stupid mistake but it seems to me very strange:
for($i=0; $i<count($list);$i++) {
$article = is_something_from_$list;
$topicid = mgd_list_topics(id);
while ($topicid && $topicid->fetch()) {
if ($topicid->name == $sth ){
/* this work fine */
$article_created = mgd_list_topic_articles ($topicid->id);
$article_created->fetch(); {
if ($article_created->title == $article->title) { echo
"$article_created->title exists";
}else {
$topics = $topicid->id;
$name = $article->title;
$title = $article->title;
$abstract = $article->abstract;
$content = 2;
$author = 2;
$url = 2;
$calstart = 2;
$caldays = 2;
$icon = 2;
$view = 2;
$print = 2;
$extra1 = "2";
$extra2 = "2";
$extra3 = "2";
$type = 2;
$next_article = mgd_create_article( 0, $topics, $name, $title,
$abstract, $content,
$author, $url, $calstart, $caldays,
$icon,
$view, $print, $extra1, $extra2,
$extra3,
$type);
}
And creates articles anyway. Nevermind if $article_created exists.
Why it works for topics but not for articles?
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]