Location: PHPKode > scripts > PHPClass Generator > phpclass-generator/templates/func-delete.tpl
function delete( $Id )
{
    {db-func}

    mysql_query( "DELETE FROM {table-name} WHERE {primary-id}='$Id'" )
        or die( "{class-name}::delete( $Id ) failed, dying..." );
}
Return current item: PHPClass Generator