Re: retrieve result of a query
| From: | Thiago H. Pojda | Date: | Sun, 28 Dec 2008 14:48:28 +0000 |
| Subject: | Re: retrieve result of a query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285139@lists.php.net to get a copy of this message | ||
You can return (echo) a JSON or a XML with those results.
That way it doesn't store the file anywhere. :)
(I'd go for JSON + jquery)
Regards,
Thiago Henrique Pojda
On Sun, Dec 28, 2008 at 11:32 AM, Alain Roger <raf.news@gmail.com> wrote:
> Hi,
>
> basically i have a php file with several parameter received in GET or POST.
> this PHP page execute a db query and should return a specific amount of
> records and columns.
>
> however i do not want to display those records like that...
> i have a web page with javascript and the javascript should read those
> records/quesry result and display them.
>
> how can javascript read those result ?
> i do not want php file to create a temporary file on server, i would like to
> read those data on fly.
> so how can i do that ? i mean how or what should i do from php side ?
>
> thx.
>
> --
> Alain
> -----------------------------------------------------------
> Windows XP x64 SP2 / Fedora 10 KDE 4.2
> PostgreSQL 8.3.5 / MS SQL server 2005
> Apache 2.2.10
> PHP 5.2.6
> C# 2005-2008
>