Gossamer Forum
Home : Products : DBMan : Customization :

Re: [JPDeni] range search syntax

Quote Reply
Re: [JPDeni] range search syntax In reply to
Sorry, I missed a bit out, when I write the database using my own script, it writes a record for each room for each day, for the length of the desired record. I show two months in advance.
The time stamp for a day is set for 12:00:00 (midday)
My query to the database then goes like this:
Is the room vacant? test unique field, (if yes) Is it vacant between these days? .........
test date1 field with >time stamp of 11:59:00, test date2 field with <time stamp of 12:01:00
What I attempted to do, was to test only one date field with two different arguments, that was where I came unstuck. (but is this possible?)

I have tried the following:
#give value to query
$config{'time'} = ">$config{'checkin'}++<$config{'checkout'}";

#send query within submit routine
<input type=hidden name="Checkin" value="$config{'time'}">

But the database does not reconise the second part of the query '<$config{'checkout'}'
---------------------------------------
With regard to seeing which rooms are vacant/occupied for part of a period between two given days, DBman does this in its logic (daah I was not thinking too good)
------------------------------------------
Next issue, In the DBman demo, one field is a URL, and the record displayed has an active hyperlink to whatever. I have tried to use this so that a record can have a link to more information, such as guest name etc. I cannot get the record that is displayed to show a active hyperlink? could this be my .db format, I used \t for a delimiter, or is this issue something more complex?

rgs Peter.
Subject Author Views Date
Thread range search syntax peterhall 11719 Dec 26, 2005, 8:32 PM
Thread Re: [peterhall] range search syntax
JPDeni 11500 Dec 27, 2005, 4:25 AM
Thread Re: [JPDeni] range search syntax
peterhall 11500 Dec 27, 2005, 5:24 AM
Thread Re: [peterhall] range search syntax
JPDeni 11479 Dec 27, 2005, 6:11 AM
Thread Re: [JPDeni] range search syntax
peterhall 11478 Dec 27, 2005, 4:47 PM
Thread Re: [peterhall] range search syntax
JPDeni 11453 Dec 28, 2005, 5:27 AM
Post Re: [JPDeni] range search syntax
peterhall 11429 Dec 28, 2005, 7:40 PM