Hi
Need help to read mysql db with json and asp page. Looked at the sample from Erel, but in php.
I have made a little test app, that works fine with Erel's php script, but when i use my own asp code, there never comes a http ResponseSuccess back. I can only see that it is my asp page that not responses correct....
From app i call:
ExecuteRemoteQuery("SELECT id, name FROM person WHERE name like '%jesper%' ORDER BY name",1)
req.InitializePost2("http://xxx.xxx.xxx.xxx:1006/ws1.asp?", Query.GetBytes("UTF8"))
ws1.asp
<!-- #include file="db_inc.asp" -->
<!--#include file="JSON_2.0.4.asp"-->
<!--#include file="JSON_UTIL_0.1.1.asp"-->
<%
response.ContentType = "application/jsonrequest; charset=utf-8"
QueryToJSON(myConn, replace(request.querystring,"%20"," ")).Flush
%>
Anyone that can help ????
Jesper
Need help to read mysql db with json and asp page. Looked at the sample from Erel, but in php.
I have made a little test app, that works fine with Erel's php script, but when i use my own asp code, there never comes a http ResponseSuccess back. I can only see that it is my asp page that not responses correct....
From app i call:
ExecuteRemoteQuery("SELECT id, name FROM person WHERE name like '%jesper%' ORDER BY name",1)
req.InitializePost2("http://xxx.xxx.xxx.xxx:1006/ws1.asp?", Query.GetBytes("UTF8"))
ws1.asp
<!-- #include file="db_inc.asp" -->
<!--#include file="JSON_2.0.4.asp"-->
<!--#include file="JSON_UTIL_0.1.1.asp"-->
<%
response.ContentType = "application/jsonrequest; charset=utf-8"
QueryToJSON(myConn, replace(request.querystring,"%20"," ")).Flush
%>
Anyone that can help ????
Jesper