[pm-h] July Meeting

todd.e.rinaldo at jpmorgan.com todd.e.rinaldo at jpmorgan.com
Mon Jul 21 13:28:12 PDT 2008


or... $vote = "maybe" if (!$vote);
 
empty strings and undef are both is false for truth testing.
 
-----Original Message-----
From: houston-bounces+todd.e.rinaldo=jpmorgan.com at pm.org
[mailto:houston-bounces+todd.e.rinaldo=jpmorgan.com at pm.org] On Behalf Of
Michael Dickens
Sent: Monday, July 21, 2008 11:54 AM
To: Houston.pm located in Houston, TX.
Subject: Re: [pm-h] July Meeting



thanks, it was that simple. 


On Mon, Jul 21, 2008 at 11:42 AM, Robert Boone <robo4288 at gmail.com> wrote:


It maybe as simple as changing == to eq 





On Jul 21, 2008, at 11:34 AM, Michael Dickens wrote:



Hello all. I live in Pearland and I have been following your group for a
while and want to see if you can help me with a problem I am having.

I am retreiving data from mysql using DBI here is the code

while ( ($id, $vote) = $sth->fetchrow_array() ) {
   $vote = "maybe" if vote == "";
   print "$id\t$vote\n";
}

but when I do this, all the vote records retreived are changed to 'maybe'
instead of just the ones that match "".
Can I use a conditional statement on the values retreived from mysql?

here is what is in mysql
id | vote
1 | no
2 | NULL
3 | yes


thanks
Michael



_______________________________________________
Houston mailing list
Houston at pm.org
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/




_______________________________________________
Houston mailing list
Houston at pm.org
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/





-- 
easy as Perl 



Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/mailman/private/houston/attachments/20080721/435b2b15/attachment.html>


More information about the Houston mailing list