Hi,
I cant get the listattachments function to work.
Here is my testing script:
<?
$article = mgd_get_article(28);
$list = $article->listattachments();
while($list->fetch()) {
echo "name: " . $list->name . "<br>\n";
}
?>
Article with id 28 has one attachment, a jpeg picture.
My output from this is:
Fatal error: Call to a member function on a non-object in content on
line 4
If I try the example in the midgard manual, with the same article id,
<?php
$article = mgd_get_attachment(28); # article with id 123 must exist.
$list = $article->listattachments();
while($list->fetch()) {
echo "name: " . $list->name . "<br>\n";
}
?>
i get
Fatal error: Call to undefined function: listattachments() in content on
line 3
Anyone?
Vidar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]