Hi i was wondering if you already wrote a function that i can use to delete and item from the database
well i looked in the SqlElement.php but could find nothing
So please can you tell me how can i delete an item
thanks in advance
Every object than extends SqlElement has a method delete()
ok so if i want to delete a resource by the id
i put something like this
$resource = new Resource ($id);
$resource->delete();
it didn't work for me ? would u help me please
you'd better write
$resource = new Resource ($id); $result=$resource->delete();
Then you've got the result of delete operation (as a message that will be displayed).
You can see for instance in /tool/deleteObject.php how this result can be managed.