importing data into database

A

Anonymous

Guest
what is the best method of coding for data input,

Method 1:
$house=$_POST['txt_house'];
and then
"INSERT INTO orgs SET
house='$house',
etc

or combining the two together

Method 2:
"INSERT INTO orgs SET
house='$_POST['txt_house']', etc


Also what is the difference between get and put? thanks
 
Method 3:

Code:
$query = "INSERT INTO orgs SET
house='" . $_POST['txt_house'] . ", etc";
 
Back
Top