That fixed that. Too much Java nd PHP.
Thanks Bob.
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 11:19 AM
To: 'Bradshaw, Brian'; [EMAIL PROTECTED]
Subject: RE: if statement question
> -Original Message-
>
Hi list,
I have some strange goings on in my code. and it might be the if statement.
I have the code:
if ($reason eq 'sale' && $method_of_payment != 'Purchase Order')
{
} else
}
I expect if $reason is 'sale' and $method_of_payment is "Visa" the if bleck
will execute instead of the els
print "$key => $hash{$key}\n";
}
You don't need a while loop to read it.
Using your code, you could do something like
foreach $field (keys %arr_criteria_hash) {
$newText = " $field like '%$hash{$field}%'";
...
}
But if what you'
ever, in "if($vars{vNameL}) {" what does the $vars do? I have not seen
that.
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 11:04 AM
To: Bradshaw, Brian
Cc: [EMAIL PROTECTED]
Subject: Re: hash assignment question
The way you are doi
Hi List,
I am trying to assign key/value pairs to a hash based on whether a variable
from an HTML form has a value or not.
I have the code:
if ($vSalutation)
{
%arr_criteria = ("salutation" => $vSalutation);
print "\n";
print "Salutation:";
print " $vSalutation \n";
print "\n";
}
if ($
Thanks guys, but I wound up using this Tuesday:
while (%result = $finalSet->fetchhash())
{
push @arr_DBanswers, values %result;
}
-Original Message-
From: Curtis Poe [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 4:57 PM
To: MPM; Bradshaw, Brian
Cc: [EMAIL PROTEC
esn;t help much with the array stuff.
brian
-Original Message-
From: Jason Tiller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 9:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Is there a better way to do this
Hi, Again, Brian, :)
On Wed, 12 Sep 2001, Bradshaw, Brian wrote:
Another question for the list,
I have the code:
$z = 0;
foreach(@key = keys(%result))
{
$arr_DBanswers[$z] = $result{$_};
$z=$z+1;
}
Is there a better way to break out the values in a hash list to a single
array?
I'd be curious to know. Thanks.
--
To unsubscribe, e-mail: [EMAI
Thanks for the info I got.
I wound up with: @stringT = split(//i, $qText); to do
what I needed.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello List,
I am hoping I can get some help here. I admit, I am very weak on pattern
matches.
I have a string that I want to substitute words for each tag. I am
pretty sure I want to split the string at the tags, then join
pieces with each answer in its proper place.
However, I just can't fig
s you sent, Curtis, but can the code I have be
fixed if I don;t have this cgi.pm installed??
Thanks.
-Original Message-
From: Curtis Poe [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 3:54 PM
To: Bradshaw, Brian; [EMAIL PROTECTED]
Subject: Re: I can't figure out what
3:42 PM
To: Bradshaw, Brian; [EMAIL PROTECTED]
Subject: Re: I can't figure out what this reads
Brian,
It looks as though you are trying to parse form content from a web page?
I would recommend using cgi.pm. It is a lot easier...
That is of course if that is what you are doing...
Craig
[EMAIL
Hi Folks. I have run into a wall and would appreciate any assistance.
I have the following code:
sub parse_form {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
if ( $ENV{'REQUEST_METHOD'} ne "POST" ) {
@values = split(/=/,$ENV{'QUERY_STRING'});
@RquizID = spli
As a beginner myself, I took this as an interesting challenge in working
with PERL syntax.
However, it seems there is a lot missing here. No DB connection, no array
names, $countresult looks undefined, and a couple of other things.
Is this the actual code? Does it actually work in PHP? I admit,
So why would you call a reference to an array instead of just calling the
array itself?
-Original Message-
From: Peter Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 8:30 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Can't understand Reference interpretation
A
Unfortunately, foreign nationals do not have respect for the rights of
American created property.
It is a problem running rampant. We have had foreign nationals pirate our
code and ideas along with the books whose copyrights are ignored.
-Original Message-
From: Dave Cross [mailto:[EMAIL
Re: I just don't get it
On Fri, Jun 08, 2001 at 05:00:08PM -0400, Bradshaw, Brian wrote:
> I have the code:
> 1.$queryCat = "select project_number from prod_cat_xref where
> category_1_id=$category";
> 2.print "$queryCat \n\n";
> 3.$setC
I have the code:
1. $queryCat = "select project_number from prod_cat_xref where
category_1_id=$category";
2. print "$queryCat \n\n";
3. $setCat = $wgDB->query($queryCat);
4. # %resultCat = $setCat->fetchhash();
5. while (%resultCat = $setCat->fetchhash())
6. {
7.
The other 2 ways you showed of doing this code do not work. I have to have
the "@key =" in to run the code.
-Original Message-
From: Aaron Craig [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 1:19 PM
To: [EMAIL PROTECTED]
Subject: RE: the ENV command? parameter?
At 11:15 08.06.2
I am totally lost on this one. What is the difference?
-Original Message-
From: Aaron Craig [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 5:07 AM
To: [EMAIL PROTECTED]
Subject: RE: the ENV command? parameter?
At 12:13 07.06.2001 -0400, you wrote:
>Progress!! now I understand wh
You guys have been so nice.. I have another question :)
What does fetchhash do?
I have the code :
$return_hash = $dbh->query($query) or print "$query\n\n";
%result = $return_hash->fetchhash();
But I am unsore of what the fetchhash does.
Thanks again!
Brian Bradshaw
Systems Engi
Progress!! now I understand what the 'QUERY_STRING' is!
and a little
foreach(@key = keys(%ENV))
{
print "$_: $ENV{$_}\n";
}
Gave me a whole lot of stuff!!
Pete, thanks for the kick start. And major thanks for calrifying the param()
thing!
Jean-Matthieu, Andrew, thank you for the re
Hi list.
I am trying to learn PERL and decipher some code somone else wrote. I have
the code snip -- $ENV{'QUERY_STRING'} --
I have not found this in the archives, so I am hoping someone will answer
this:
I cannot figure out exaclty what the ENV is.The book says it contains the
current environm
23 matches
Mail list logo