close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

WA Server Validation Problem

Thread began 1/18/2016 10:14 pm by salaroche | Last modified 3/01/2016 11:46 am by salaroche | 859 views | 18 replies

salaroche

WA Server Validation Problem

Hi:

I have used WA Server Validations before with very good results, but not this time.

I’m trying to double check whether two data entered in an insert page already exist in a particular table in the db. The first is the month in a date field and the second is the username.

The month I get using a SELECT MID(Date(Now()),6,2) AS month1 and the second is stored in $_SESSION[‘MM_Username’]

Then I have a recordset “parsedMonth2 with these parameters:
SELECT pslip.date, pslip.username
FROM pslip
WHERE pslip.username = akauser AND MID(pslip.date,6,2) = colname

Akauser uses $_SESSION[MM_Username’] as Runtime Value and colname uses $_POST[‘month1’] as Runtime Value.

The WA Server Validation uses Validation Trigger = Current page submit; validation type = Number; and Server variable = $totalRows_parsedMonth2; Format = English (1,000.00); Minimum = -1; Maximum = 0; and Allow decimals = All.

What am I not doing right here?

The Validation should allow users to enter their data when the conditions username AND MID(date,6,2) are not given together. As it is, however, the Validation never allows for entering the data, even when the table is empty. It always sends users to the error-message page.

Attached please also find a copy of the Insert page that contains the validation.

Any suggestions?

Thank you for your attention

Attached Files
pslip_Insert.php

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...