Hi,
I have used a css dropdown menu which works both in Ie and FF however, it's better in FF.
See how the route through the menu can be followed in ie, with the green border. How can I achieve this in IE? I have tried all I can think of but I seem either to have all links highlighted or...
in my text file, the line brought into the variable $doubleRoomNumber is like this:
001,002,010,015,026 etc. I want to list each of these within <option></option> tags.
I am having trouble splitting the $doubleRoomNumber to do this. The number of rooms may be 200 or it could be 5 so I don;t...
Solved.
I used a different array that I had already compiled (and forgotten about), in my sub. A simple conditional gave the much-desired result :)
bazz
My ISP is running Apache with phpMyAdmin and MySQL.
That's good to know that phpMyAdmin doesn't stop me using perl. I know that perl and MySQL would work together but I thought, in my ignorance that, it may need another software package.
I nearly have this as a working model now. Once...
Having run a number of loops, I have built two arrays. Then I have used Data::Dumper to remove duplicate entries from each array
eg @vacantRooms = 29 30 01 20 03 04 05 29 30 01 02 30 01;
is now, 29 30 01 02 03 04 05;
similar done for @nights Requested.
But how do I build a hash so that the...
Well, I wouldn't exactly call myself a PERL wizard :) And I would rather stick with perl as the language though my ISP only offers a phpMyAdmin, which I guess would only enable me to admin, the SQL Db, using PHP.
Not, yet, having looked into it, it probably seems more daunting than it really...
Thank you Steve.
I did know that the return would work but what I didn't know was whether it would cause the sub to be re-run whenever the @array was called in the next, or later, subroutines.
And it's good that I don't need to make it global.
bazz
Thanks Steve. I didn't take it as a rant. :)
I understand what you're saying about the separation issue. I shall look at that now.
One further question; if I may...
The sub which I have run to read in data from some files, builds a hash (%rooms) and an array @vacancies. having done that, the...
Well, I am in the UK and, nope, I am not trying to make it easier to sell. I am intent on building a high-quality system and it's easier to keep track of what I want it to do, from my own perspective, if I have something of a model.
I appreciate your advice and don't want to sound like I...
Thanks Steve.
Indexing/speed was the one thing I was aware of as a benefit with a Db. What I am actually trying to do is build a working model, so that I can then show it to a programmer, who may build me a MySQL 'version'. I reckon it would be easier to understand if seen 'working'.
I know...
Thanks Paul, I can see how that would work in one respect. However, I am not sure how it could work for this.
Having looped through specific files (for bedrooms) and found one that is vacant (filename is Twin_001_2007-04-29) I want then to find out if that room is vacant on the following 5...
well, there could be 500 rooms in the hotel and the capability to book up to three years in advance. thats 365/366 days, x 3 years x 500 rooms = 547500 files approx. That's just for one accommodation provider. There could be 50 of them in total.
bazz
Thank you Steve.
Yes, you are right, I do create a separate file for each booked room. In fact, it's a separate file for each night, for each room. Few details, (checkInDate, checkOutDate, bookingReference), since the majority of the occupants data is held in a guest's details text file...
here are the values I need to work with
my $dateRequested = 01;
my $numericalMonthRequested = 03;
my $yearRequested = 2007;
my $numberOfNightsRequested = 5;
I need your help please.
How can I run a loop, to created a file for each of the dates,
1st through to 6th?
got it. :)
while ( my $Line = <DAT> ) {
last if ( index($Line, ':') == -1 );
chomp $Line;
my ( $Keyword, $Value ) = split /:/, $Line, 2; #splits the line at the first : ignoring any others
if ($Keyword eq "BookingReference") {
$bookingReference = $Value;
chop...
I am sorting through a list of filenames within a dir.
Opening the filenames I can read the bookingReference in a hash.
if ($accommodations{$Keyword}) {
$booked = 1;
last;
} # end if
if ($booked) {
&booked;
} else {
&vacancies;
}
The difficulty is that both instances will be true, most...
Kevin you're a star!! In my sort of the $roomDate I hadn;t entered your snippet. (actually I hadn't entered it anywhere). But when I added it to the:
foreach my $roomDate ( keys %{ $rooms{$roomNumber} }) {
to give
foreach my $roomDate ( sort keys %{ $rooms{$roomNumber} }) {
There it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.