php how to post a Variable to mysql?

ganger

New member
i know how to post or get from a form and send to a data base

but how do send a variable to a data base i have wrote program were now i got a variable but because it not a form i do not know how to pass this to be stored in a mysql

$name = $_SESSION['username'];

i want to be able to save $name to a data base i have set up
what code do i need use to send this to do this
 
Back
Top