This question already has an answer here:
If someone is loading my site like www.example.com/value?=something it will add the value to a mysql database
Like google https://www.google.com/search?q=something
I think it's easy but i'm a extremely noob to PHP and don't how to do it.
</div>
These are called query parameters.
<?php
$param1 = $_GET['q']; // something for http://localhost/script.php?q=something
catch the value in a variable using
$variable = $_GET['value']
and then add $variable to your database.