th3monk3y has asked for the wisdom of the Perl Monks concerning the following question:
I have a successfull query however I would like it to not display the negative (-) symbol... how do i do this...
my $balance_due = $dbh=$db->prepare("SELECT balance FROM Table1 WHERE username='$authuser' and balance < '-.01'"); $dbh->execute(); ($balance_due) = $dbh->fetchrow_array();
the result ends up being -9.99
that's all fine and dandy but I need it to drop the (-) because I am filling
in a payment form... and this has me owing them money!
Cheers,
-Paul
edited: Tue Jul 1 13:43:00 2003 by jeffa - code tags, entity unescaping
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Chomp Maybe?
by The Mad Hatter (Priest) on Jul 01, 2003 at 04:43 UTC | |
by hardburn (Abbot) on Jul 01, 2003 at 18:24 UTC | |
by The Mad Hatter (Priest) on Jul 01, 2003 at 18:32 UTC | |
by th3monk3y (Novice) on Jul 01, 2003 at 04:52 UTC | |
|
Re: Chomp Maybe?
by hossman (Prior) on Jul 01, 2003 at 04:48 UTC | |
by th3monk3y (Novice) on Jul 01, 2003 at 04:58 UTC | |
|
Re: Chomp Maybe?
by parv (Parson) on Jul 01, 2003 at 05:01 UTC | |
|
Re: Chomp Maybe?
by flounder99 (Friar) on Jul 01, 2003 at 14:30 UTC |