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 generate a "non existent value"?

Thread began 6/13/2013 10:50 am by info4753 | Last modified 6/14/2013 10:15 am by info4753 | 501 views | 9 replies


I have a room reservation system where you can select the room and the time you use the room. The time is dived into morning, afternoon and the whole day. I did this by using DAUERID with 1 (morning), 2(afternoon) and 3(day) values.

Now the problem is that if the whole day is already taken and another customer want's to book the room only for the morning, I have the DAUERID = 1 from the form that has to be validated against a DAUERID of 1 in the reservation table but also for a DAUERID of 3 in the reservation table.

So what I did is this CASE szenario to generate a value (0 or 1) for "result" that helps me to validate available entries in the reservation table. But if there is no reservation for that day in the reservation atble, the recordset returns empty and therefore no 0/1 values.

What I need is a validation like "if return is 0 OR the recordset is empty, accept booking".

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





Ease of use


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