0

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.

Edited by Mike516: n/a

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Airshow
0

... 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

0

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.

Edited by Mike516: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.