This is example from midgard1.4 manual:

<?php
         $article    = mgd_get_article(123); # article with id 123 must exist.
         $att = $article->createattachment("test","example","text/html");
         if(! $att) {
           echo "Failed to create attachment.<br>\n";
           echo "Reason: " . mgd_errstr();
         } else {
           echo "Attachment created. ID is $att.<br>\n";
         }
       ?>

and output log for mysql:

 7 Query       SELECT domain,name,value FROM record_extension WHERE 
tablename='article' AND oid=26377
 7 Query       SELECT id FROM blobs WHERE (ptable='article' AND pid=26377 AND 
name='test') AND (sitegroup IN (0,0) OR 1<>0)

I do not get it. Why createattachment function 
calls to mysql Select ??

All in all it ends with internal error in midgard.

Piotras



_________________________
http://www.infoglob.pl/sklep
http://www.milinski.com.pl



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to