baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Claus on 2/27 2006, 08:48 +00:00

    Re: only want to modify db but not delete


      Sorry, I've forgotten something;-))


      <perl>
      if ($cmd eq "del")
      {
      $cmd="";
      out "You can't delete";
      }
      </perl>



      <do action=all cmd=$cmd db=yourdb.......>

      this works;-)

      Greetings

      Claus
       

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from ken on 2/7 2006, 00:09 +00:00
    EMail: kkok@sony.co.nz

    only want to modify db but not delete


      Hi,
      I want my users to only modify data not delete.but when i seletc modify or delete, both delete and modify shows up inthe page. users can accidently delety the whole entry. How do u enable modify only?
     Post a reply

    Message from Claus on 2/7 2006, 12:42 +01:00

    Re: only want to modify db but not delete


      <perl>
      if ($cmd eq "del")
      {
      $cmd="";
      out "You can't delete";

      }
      </perl>

      Claus

     Post a reply

    Message from rsmgirl on 2/25 2006, 01:54 +00:00

    Re: only want to modify db but not delete


      I am looking to do the same. Where do you place this code?
     Post a reply

    Message from Claus on 2/25 2006, 19:44 +01:00

    Re: only want to modify db but not delete


      Hi,

      <perl>
      if ($cmd eq "del")
      {
      $cmd="";
      out "You can't delete";

      }
      </perl>

      <do action=all.......>

      Greetings

      Claus

     Post a reply

    Message from rsmgirl on 2/26 2006, 20:03 +00:00

    Re: only want to modify db but not delete


      Hi Claus,

      I tried your code. It doesn't seem to work. I placed it just before the <do action=all...> as you instructed. It still allows me to delete records.
     Post a reply

    Message from Claus on 2/27 2006, 08:48 +00:00

    Re: only want to modify db but not delete


      Sorry, I've forgotten something;-))


      <perl>
      if ($cmd eq "del")
      {
      $cmd="";
      out "You can't delete";
      }
      </perl>



      <do action=all cmd=$cmd db=yourdb.......>

      this works;-)

      Greetings

      Claus
       

     Post a reply


    Message from Kenk63 on 3/3 2006, 05:05 -05:00
    EMail: kenk63@aol.com

    Re: only want to modify db but not delete


      Cannot get this modify-but-not-delete technique to work. Any suggestions as to where to insert this code (or anything else)??? I believe a few of us are in need of some insights here. Thanks to anyone for any help.
      Ken
     Post a reply


    Message from Kenk63 on 3/3 2006, 19:11 -05:00
    EMail: kenk63@aol.com

    Re: only want to modify db but not delete


      Thanks Claus, that did the trick!
      Ken
     Post a reply

    Message from rsmgirl on 3/5 2006, 08:39 +00:00

    Re: only want to modify db but not delete


      Hi Claus,

      Sorry I haven't responded sooner. That worked. Thanks!
     Post a reply
     
 Newest 150 Threads: To the input form 
To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



powered in 0.03s by baseportal.com
Get your own Web Database - for FREE!