[TYPO3-project-formidable] T3CON06 Demo, delete the image.

Asbjoern Morell atmorell at gmail.com
Tue Mar 27 23:36:15 CEST 2007


Hello.

I am trying to create a delete button on the T3CON06 (page4) that allows me 
to delete the image:

  <renderlet:LINK name="lnk_delete_image" activelistable="true">
   <label>Delete image</label>
   <onclick
    runat="server"
    params="uid"
    confirm="Are you sure you want to delete this image ?"
    when="start"
   >
    <userobj>
     <php><![CDATA[

      $aParams = func_get_args();
      $iUid = $aParams[1]["uid"];

      $updateFields = array('image' => '');

      $GLOBALS["TYPO3_DB"]->exec_UPDATEquery(
       "tx_ameost3con06_car",
       "uid='" . $iUid . "'",
       "$updateFields"
      );

     ]]></php>
    </userobj>
   </onclick>
  </renderlet:LINK>

But I get a debug screen with this:
      caller t3lib_DB::exec_UPDATEquery

      ERROR Query was empty



Why? I checked the api and my syntex should be okay!

Best regards.
Asbjørn Morell. 




More information about the TYPO3-project-formidable mailing list