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-
From: Bradshaw, Brian
foreach $field (keys %arr_criteria_hash) {
$newText = $field like '%$hash{$field}%';
...
}
But if what you've got is working...
John
-Original Message-
From: Bradshaw, Brian [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2001 17:07
To: [EMAIL PROTECTED]
Subject: RE
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 TR\n;
print TDSPAN CLASS=\menubold\Salutation:/SPAN/TD;
print TD
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 doing it, you are redefining your hash each
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 PROTECTED
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:
I
Thanks for the info I got.
I wound up with: @stringT = split(/select\D.*?\/select/i, $qText); to do
what I needed.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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:
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 select tag. I am
pretty sure I want to split the string at the select tags, then join
pieces with each answer in its proper place.
However, I
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 =
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 PROTECTED]
http
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 this reads
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,
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
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
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
I have the code:
1. $queryCat = select project_number from prod_cat_xref where
category_1_id=$category;
2. print $queryCat BR\n\n;
3. $setCat = $wgDB-query($queryCat);
4. # %resultCat = $setCat-fetchhash();
5. while (%resultCat = $setCat-fetchhash())
6. {
7.
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
18 matches
Mail list logo