You are here: Re: Whats wrong with this code? « PHP Programming Language « IT news, forums, messages
Re: Whats wrong with this code?

Posted by Garry Jones on 10/06/06 23:12

Gary Hasler" <garyhasler@thelogconnection.com> skrev i meddelandet
news:45256F6B.DE571CC4@thelogconnection.com...

> I agree. Or else (this is a long shot) maybe you accidentally used a
> numeral one "1" (instead of lower case L) in the variable name in the if
> statement, being undefined it's somehow equating to zero?

Thanks to all.

Jeff hit the nail on the head....

The select control returns a string value so you should change your
code to:
if($dtctxsz1 == "0"){

Amazing what a pair of quotation marks can do.

Garry Jones
Sweden

 

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

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