That's really just a matter of passing variables to the script.
$_GET would be the way to go for pulling the variables from the URL, like in the forum links here.
I'm not sure what you mean by how you'd remember it, though. Like you'd remember any URL?
Even with the POST/GET examples. I'd make sure you're comfortable with using variables within a script & pulling info from the URL, forms, etc... before adding database interaction to the mix.
The more things you try to do at once, the harder it is to narrow it down when it doesn't work as expected.
Plus, when you're at a stage where you just want to get something to work, it can be easier to overlook security.
Doing searches for code injection, mysql injection, header injection, php security, mysql security, etc... can bring up some useful info to keep in mind--especially if anything will be generated from user input.
I'd also recommend reading through all of the MySQL function descriptions on the PHP site I originally linked to, even if they don't look like something you need right away. That way, when there's something you want to accomplish, you'll have a better idea of where to start looking.
Maximum savings promo code: MaxSavingsAtDH