Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Check against pre-populated data

New Here ,
Jun 25, 2009 Jun 25, 2009

Hi,

If anybody could help that would be very much appreciated..

I have adatabase populated with some serial numbers. And a form for customers to register their product by entering the specified serial number that's printed on their product.

What's the code to check if the entered serial number (by customer) matches the one we pre-populated in the database.

Many thanks

473
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 25, 2009 Jun 25, 2009

WHERE serialNumber = <cfqueryparam value="#form.serialNumber#" cfsqltype="cf_sql_varchar">

Is usually considered the best pratice way to check user input against a database value, but is by no means the only way to it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 25, 2009 Jun 25, 2009
LATEST

Much appreciated Ian, I'll give it a go..

Many thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources