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

How to check two unique value in the same record of the database?

Thread began 9/10/2018 11:45 am by tony | Last modified 10/17/2018 11:47 am by tony | 176 views | 11 replies

tony

Hi Ray,
I created a new website and implemented the same solution, but this time it doesn't work.
I'll try to explain:
now I need to compare at least 3 fields.
So, I created a recordset that should display the records that will have these 3 fields identical.

This is the recordset I use:

SELECT *
FROM registrazioni
WHERE registrazioni.data_scontrino_reg = datascontrino AND registrazioni.ora_scontrino_reg=orascontrino AND registrazioni.minuti_scontrino_reg = minutiscontrino AND registrazioni.numero_scontrino_reg = numeroscontrino



All variables here are compared to the related $_POST variables (as TEXT).

The strange thing is that it works locally (on a qnap webserver that has php 5.5.38), but it doesn't online (PHP 5.6.38).
Online, the validation pass everytime.
Please note that all other fields will validate correctly.

What can I check to make it work?
TIA
tony

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...