Re: [PHP] retrieve result of a query

2008-12-28 Thread Phpster
Ajax is what you need to look at. JS can certainly accept the data  
being posted back from the server.


Bastien

Sent from my iPod

On Dec 28, 2008, at 9:32 AM, "Alain Roger"  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


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



Re: [PHP] retrieve result of a query

2008-12-28 Thread Thiago H. Pojda
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  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
>

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



[PHP] retrieve result of a query

2008-12-28 Thread Alain Roger
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