After executing a query in javascript how do I store that information?

In php i know we can use

$row = mysql_fetch_array ($result)

thanks in advanced.

... executing a query in javascript...

If you mean an SQL query then it will typically be performed server-side. I can't think of a context in which Javascript would be used to perform an SQL query though Javascript could initiate such a query via Ajax (or possibly ActiveX) and receive back the query's result as a response.

... how do I store that information?

This wholly depends on what you mean by "store". Your example is somewhat confusing because $row = mysql_fetch_array ($result) does not store anything; it assigns the result of an SQL query to a php handle.

Airshow

Well what i mean is i need to store the information that we get back in an array so it can be manipulated later on.

PreparedStatement ps= con.prepareStatement("SELECT ........ blahblah");

in php we can use foreach and take each array value and then manipulate it but I don't know much about java.

Java :confused:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.