- To: Amit Tandon <attand@xxxxxxxxx>
- Subject: Re: Problem w/query - again
- From: Ethan Rosenberg <ethros@xxxxxxxxxxxxx>
- Date: Fri, 10 Feb 2012 00:34:42 -0500
- Cc: PHP Database List <php-db@xxxxxxxxxxxxx>
- In-reply-to: <CAM5PkjdV9Xauf5jRxzQvePy9=PEtC8Fpt7qvFq6rYE6A+c-WmA@mail.g mail.com>
At 12:13 AM 2/10/2012, Amit Tandon wrote:
Dear Ethan
It seems you are trying to build a query.But you are not getting field
names. If you required field names then change the following line to
foreach ( $allowed_fields AS $field => $_POST['field'])
to
foreach ( $allowed_fields AS $field)
This would convert the variable field to value. In yoyr line the variable
field is treated as array index
============
regds
amit
"The difference between fiction and reality? Fiction has to make sense."
<snip>
>
> Advice and help please.
>
> Thanks.
>
>
> Ethan
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Amit -
Thanks.
Tried it. Still does not work.
This is the query I get:
select * from Intake3 where 1
Ethan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[PHP Users]
[Postgresql Discussion]
[Kernel Newbies]
[Plagiarism Notes]
[Postgresql]
[Yosemite News]