You are here: Re: if statement weirdness « All PHP « IT news, forums, messages
Re: if statement weirdness

Posted by Smiley on 02/28/06 04:35

"Disco Octopus" <discooctopus@yahoo.com> wrote in message
news:14kf3b7vgu3el$.gmixeb8ew7u2.dlg@40tude.net...
> Smiley wrote:
>
>
> Is it possible that these are of different data types?
> perhaps $price is a string? and $amount is a number?

You're right. I just tested that out by putting quotes around each variable
in the 'if' statement and it works now.

The $amount variable was returned by PayPal Sandbox, I guess it must have
been a string.

I thought that PHP automatically set the data type of a variable based on
what kind of data was inside...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация