At Wed, 08 Dec 1999 09:08:04 +0100 (MET), [EMAIL PROTECTED] wrote:
>
>On Tue, 7 Dec 1999 [EMAIL PROTECTED] wrote:
>
>> Well.... I checked my calling of the mgd_update_article function...
>>
>> Here is an example call:
>>
>> echo $topic;
>> echo $whicharticle;
>>
>> $req = mgd_article_call ($topic,$whicharticle,$title, etc...);
>
>The first parameter to mgd_update_article is the article ID. The full
>parameter list:
>
>mgd_update_article(id, topic, name, title, abstract, content, author,
>url, calstart, caldays, icon, view, print, extra1, extra2, extra3)
>
>Bye,
>Emile
>
>
This is true. I erroneously switched the two parameters...
It should be:
mgd_update_article($whicharticle, $topic, etc... );
And, upon inspection of my code, that appears to be what I'm doing. So....
I've still got this problem, and everything appears to be working right.
Here is the complete chunk o code:
12: if($whichaction=="modify") {
13: //Give us the modify screen
14: ?>
15: <?
16: if($done=="1") { ?> Done. <? } else {
17: $article = mgd_get_article($whicharticle);
18: $topic = $article->topic;
19: $name = $article->name;
20: $title = $article->title;
21: $abstract = $article->abstract;
22: $content = $article->content;
23: $author = $article->author;
24: $url = $article->url;
25: $startdate = $article->startdate;
26: $caldays = $article->caldays;
27: $icon = $article->icon;
28: $view = $article->view;
29: // $print = $article->print;
30: $extra1 = $article->extra1;
31: $extra2 = $article->extra2;
32: $extra3 = $article->extra3;
33: }
34: if($done == "1") {
35: echo "[";
36: echo $whicharticle;
37: echo "][";
38: echo $topic;
39: echo "][";
40: echo $icon;
41: echo "]";
42: $res = mgd_update_article($whicharticle, $topic, $name,
$title, $abstract, $content, $author, $url, $calstart, $caldays, $icon,
$view, $print, $extra1, $extra2, $extra3);
43: ?> Article updated (&(res);). Click <a href = "&(id);.html?action=admin">here</a>
to go back to the admin page.
44: <? } else { ?>
45: Modify the article, then click the submit button when you are finished.<p>
46:
47: <form action="&(id);.html" method=post>
48:
49: <input type="hidden" name="topic" value="&(id);">
50: <input type="hidden" name="whicharticle" value="&(whicharticle);">
51: <input type="hidden" name="isaction" value="1">
52: <input type="hidden" name="action" value="articleaction">
53: <input type="hidden" name="done" value="1">
54: <input type="hidden" name="whichaction" value="modify">
55: Title: <input name="title" value="&(title);">
56: Author: <input name="name" value="&(name);">
57: <p>
58: <input type=submit>
59: Abstract:
60: <textarea name="abstract" rows="5" cols="60" wrap="soft">
61: &(abstract);
62: </textarea><p>
63: Content:
64: <textarea name="content" rows="10" cols="60" wrap="soft">
65: &(content);
66: </textarea><p>
67:
68: </form>
69:
70: <?
71: } }
There's more, of course, but I don't think it's really relevant.
Help appreciated, and a sample output (After modifyin a page) goes like
this:
Done. [69][21][] Article updated (1). Click here to go back to the admin
page.
Thanks for the help,
Ben Garney
LHS Webmaster
www.lincolnhs.pps.k12.or.us
IMPORTANT NOTICE: If you are not using HushMail, this message could have been
read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]