Re: [PHP] POST + QUERY



Dan Shirah wrote:
Should I use something besides mssql_fetch_row to get my result? No matter
which method I use for determining if the value exists, I still get no data
populated to my form.
Why not echo out your query before executing it, so you can run it against the back end if you have it, or at least for a sanity check to make sure you are running the correct query.


On 3/27/07, Tijnema ! <tijnema@xxxxxxxxx> wrote:

On 3/27/07, Davi <davividal@xxxxxxxxx> wrote:
> Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu:
> > use: $_POST['max_id'] ==
> >
> > or even better:
> >
> > if (empty($_POST['max_id']))
>
> Why not:
>
> if (!(isset($_POST["max_id")))
>
> ?

If form is left empty, it is set, but it's stil empty. So if you
submit a form the normal way, then it should pass this, even if you
leave it empty :)

Tijnema
>
> --
> Davi Vidal
> davividal@xxxxxxxxxxxxxxxx
> davividal@xxxxxxxxx
> --
>
> Agora com fortune:
> "Around computers it is difficult to find the correct unit of time to
> measure progress. Some cathedrals took a century to complete. Can you
> imagine the grandeur and scope of a program that would take as long?
> -- Epigrams in Programming, ACM SIGPLAN Sept. 1982"
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



.



Relevant Pages

  • Re: [PHP] Re: isset($a->b) even if $a->b = null
    ... mysql_fetch_objectfor instance you have just a stdobject, ... are considered "empty". ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: [PHP] mysql if empty
    ... This doesn't meant that the variable holding the reference to the result set is itself empty, but that you will fail to fetch any results from it. ... echo "No result found"; ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: [PHP] POST + QUERY
    ... No matter ... If form is left empty, it is set, but it's stil empty. ... > PHP General Mailing List ... > To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: [PHP] Re: isset($a->b) even if $a->b = null
    ... var $b; ... are considered "empty". ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: Filtering (was Re: Worse then useless replies)
    ... What is adding one more procmail filter ... I think you're making a serious mistake; that won't empty /dev/null, ... compact it; see the recent thread about compacting / deleting mail ... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)