Hi mgds,
trying to delete attachments,
$downdel is an array with ID,Name (html checkboxes).
if ($downdel) {
foreach($downdel AS $key=>$value){
echo "$key -> $value <br>";
mgd_delete_attachment($key);
echo mgd_errstr();
}
}
shows me:
151 -> uf000402.gif
Resource has dependants
151 is a fresh attachment, just added with nadmin. So what is a dependant
for an attachment...?
340 is Article ID.
mysql> select * from blobs where pid=340;
+-----+---------+-----+-------+--------------+--------------------+--------------------------------------+-----------------+-----------+--------+---------------------+
| id | ptable | pid | score | name | title | location
| | mimetype | sitegroup | author | created |
+-----+---------+-----+-------+--------------+--------------------+--------------------------------------+-----------------+-----------+--------+---------------------+
| 150 | article | 340 | 0 | manual.pdf | Blah und so weiter |
|4/5/45a43da8d51bb3ed56235548649daa7e | application/pdf | 3 | 23 |
|2001-11-27 13:11:37 |
| 151 | article | 340 | 0 | uf000402.gif | uf000402.gif |
|D/C/dc669ae5d74e29e6537725ee6e2d7f41 | image/gif | 3 | 1 |
|2001-11-29 13:18:10 |
+-----+---------+-----+-------+--------------+--------------------+--------------------------------------+-----------------+-----------+--------+---------------------+
So, can somebody enlight me.
regards Martin
--
mailto: `echo [EMAIL PROTECTED] | sed 's/[NOSPAM]//g'`
----------------------------------------------------------------
DOS never says "EXCELLENT command or filename, Dude!"
----------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]