[TYPO3-dev] deleting records on front end for custom tables with mmrelation

Steffen Kamper steffen at dislabs.de
Mon Sep 11 23:19:33 CEST 2006


Hi,

"Artur Nankran" <arturnankran at yahoo.com.br> schrieb im Newsbeitrag 
news:mailman.8233.1157975531.6911.typo3-dev at lists.netfielders.de...
> Hello list, this is the problem that i have,
>
>  I have a table with true MM relations, and so I have some link tables 
> (mm tables), and I made it possible for the users to edit the records  and 
> also add new records by the front end, and this is working fine.
>  But I am having problems with deleting records, when the button is 
> pressed the following message appears:
>
>  "Warning:  mysql_fetch_row(): supplied argument is not a valid MySQL 
> result resource in 
> /usr/share/typo3/typo3_src-3.8.1/t3lib/class.t3lib_db.php on line 754"
>
>  After that the record from the local table is deleted, but the one  from 
> the link table is not. I think that maybe this delete function is  not 
> made to support MM tables, but I am not shure, maybe someone could  giveme 
> some hint if there is a way to solve this problem.
>
>  Cheers
>  Artur Nankran
>
>
> ---------------------------------
> Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. 
> Registre seu aparelho agora!

best way to delete a record is to set the field delete=1, so one simple 
update can be used for it.

vg  Steffen 






More information about the TYPO3-dev mailing list