Uh, I don't think I'm on the right lines but is there a way to connect to the internet and send some variables to a database?

There are probably many ways to do that.

And you know a way?

Sorry, I don't use databases. But I have seen LOTS of code on forums that connect to servers and access databases.
Use Search or Google for the getConnection method for example

OK, I'll see what I get, thanks!

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.