Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

vb6 to php to mysql and back

What I would like to do is create a way of accessing values from my mysql database via a php or xml file stored on my server. What happens is when I pass 3 variables required to verify the account info it will check them and if they pass it will then retrieve whatever other field i was requesting back to my vb6 app.

How can I do this?
[345 byte] By [jtabish] at [2007-11-11 10:08:07]
# 1 Re: vb6 to php to mysql and back
Take a look at ADO Recordsets they can save and load recordsets as XML files.
Ron Weller at 2007-11-11 17:23:13 >
# 2 Re: vb6 to php to mysql and back
what I wanted was a middleman. I wan something that will connect the vb6 and mysql database together, this way it can handle the sensitive login details and such and no risk of someone trying to reverse engineer the app for the login details ... And yes vb6 can be reverse engineered.
jtabish at 2007-11-11 17:24:13 >
# 3 Re: vb6 to php to mysql and back
You could write a dll that runs on the server. You call one of its routines and it grabs the data from mysql into an ADO recordset and then saves the data to an xml file. Then your vb6 program grabs the xml file from the server and loads it into its own ADO Recordset and the reverse when you need to send data back. Of course sending data back for updates would create potential problems with mutlipule users trying to update the same records. So you would need a way to decide which records update. Or use replication where you have control down to the field level.
Ron Weller at 2007-11-11 17:25:11 >
# 4 Re: vb6 to php to mysql and back
not vb6 only but any vb could be reversed , u may protect your vb application , there are different method for doing that , usually we don't want to send plain login information to the server but encrypt it or just scramble it ...
I know after protecting your vb application , it could be "cracked" too but at least the used algorithm will be very difficult to know .
Amahdy at 2007-11-11 17:26:19 >