I have installed a simple php-file on my webserver. With that, it is possible to make entries into the mysql database on the server together by passing parameters in the url : http://xyz.com/insert_data.php?id=123&name=Blahblah
I thought of using the HttpRequest() procedure to enter data from within my SB application, but the following code is giving me an error and no entry (adapted from the SB manual):
Code: Select all
Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure
HTTPRequest(0,"http://xyz.com/insert_data.php?id=123&name=Blahblah","",@HttpGetEvent())
How can I save and retrieve data into a web database with SpiderBasic, then?
// Moved from "Tricks 'n' Tips" to "Coding Questions" (Peter)