Can anyone show me how to make a variable that calls the exact value inserted into a table? Because I only know to call from a textbox, like this:

PHP Code:
$name $_POST['txtname'];
$gender $_POST['txtgender']; 
but what would be the codes if I will call the exact inserted value from a table?

$name = ?;
$gender = ?;

thanks in advance.