You are here: Re: SELECT selects too quick « PHP SQL « IT news, forums, messages
Re: SELECT selects too quick

Posted by Anne Bos on 01/05/07 14:05

On 5 Jan 2007 03:53:25 -0800 wrote "Captain Paralytic"
<paul_lautman@yahoo.com>:

>
>Anne Bos wrote:
>
>> In a database about houses I want the visitor to make a choice by
>> typing in an address. As a result the database presents one or more
>> adresses according to the input. So far so good.
>>
>> However, when arriving on this page I want to present a greeting and
>> some instructions. So the page starts with:
>> <?php
>> if (!isset ($_POST['address'])) {echo "Welcome, Instructions etc.";}
>> ?>
>>
>> In spite of this I always get a list of all addresses, perfectly as I
>> want to present them AFTER the input.
>> What might I do wrong, what is it I'm overlooking?
>> Any suggestion is appreciated.
>
>Is the rest of the code in an "else" block, or will is execute
>regardless of whether $_POST['address'])) is set?

To get rid of this situation I made an 'else' block with a code that
is checked when results are coming. But I thought that this should not
be necessary as in the beginning there should be no input is
POST['address']

 

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

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