Reply to Re: Testing for emtpy result.

Your name:

Reply:


Posted by Schraalhans Keukenmeester on 06/08/07 06:20

At Wed, 06 Jun 2007 17:46:40 +0000, Matt let h(is|er) monkeys type:

> Hi there,
>
> I'm working with a bit of a messy query but I'm not looking for tips
> on improving it (it's been a headache enough, haha).
>

>
> if ($review_text = null) {
> echo "come back soon!";
> }
>
$review_text = null isn't a test, but an assignment. Don't you mean == or
===?

Is $review_text always really empty in your test? (what length has it
got?)

> but none of these display. Is there a solution here? It's a trivial
> issue really since it's essentially catering to people who click on an
> article within a 1 minute or so period, but still.
>
> Matt

--
Schraalhans Keukenmeester - schraalhans@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') < 0"

[Back to original 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

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