I'm going through all midgard functions ;))

I got problem with updateing articles from list.
All I finished with success is updating articles but with the same value
for all.
I made it with not so "ellegant" way with checkbox checked by default.
Can You help with getting correct value for correct article's ID?


 <td ><INPUT type="checkbox" checked name="article_id[]"
value="&(article.id);"><p>&nbsp;&(article.title);</p></td> 
  <td><p>&nbsp;&(article.name);&nbsp;</p></td> 
   <td ><p><b>&nbsp;&(article.score);&nbsp;</b></p></td>
<td>&nbsp;<INPUT type="text" size ="4" name="article_count"
value=""></td> 

for($i=0; $i<count($article_id);$i++) { 
      $article = mgd_get_article($article_id[$i]);
      if ($article->$article_id[$i]) ; {  


$topicid = mgd_list_topics(144);
   while ($topicid && $topicid->fetch()) {
        if ($topicid->name == $name ){

$article_updated = mgd_list_topic_articles ($topicid->id);
while ($article_updated->fetch()) {
$article->id = $article->id;
$article->url = $article_count;
mgd_update_article( $article->id, $topics, $article->name,.....etc


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]

Reply via email to