Insert Data into DB

Hello all,
I’m looking for a solution to insert data into a database from my dashboard. I want to store a IP Address from a dashboard text field into a mysql db. I tried it with jscript and php. But php doesn’t work from a dashboard.
Is there anyone who has an idea?

thank you
greetings Ralph

Have you found a plugin that does this? I’m also looking for such a plug-in.