Skip to main content
June 26, 2006
Question

Need to validate number update. Value should be greater than db field.

  • June 26, 2006
  • 1 reply
  • 184 views
Hi Everybody!
I'm creating an auction solution for a customer and needs to validate the price (bid). It should increase for each new bid. Have seen a lot of validating solutions out there, but they mostly consern on static conditions. Is there a faily easy solution to this?
Update should only take place if the textfield value is greater then the db field.

Thanks in advance.
-S
This topic has been closed for replies.

1 reply

Inspiring
June 26, 2006
I don't know what server model you are using, but you should be able to
accomplish this with an if .. then .. else statement.

If textfield > fieldname
do this
else
do this
end if


--
Nancy Gill
Adobe Community Expert
BLOG: http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development


"Anapeg" <webforumsuser@macromedia.com> wrote in message
news:e7om97$7nk$1@forums.macromedia.com...
> Hi Everybody!
> I'm creating an auction solution for a customer and needs to validate the
> price (bid). It should increase for each new bid. Have seen a lot of
> validating
> solutions out there, but they mostly consern on static conditions. Is
> there a
> faily easy solution to this?
> Update should only take place if the textfield value is greater then the
> db
> field.
>
> Thanks in advance.
> -S
>
>