Hi
Firstly I am new to programming so go easy on me
I am building a page where the user inputs text into a table called 'products'. This is the code I am using:
$productname=$_POST['productname'];
$productprice=$_POST['productprice'];
$productpostage=$_POST['productposage'];
$productquick=$_POST['productquick'];
$productdescription=$_POST['productdescription'];
$productdelivery=$_POST['productdelivery'];
mysql_connect('localhost', 'username', 'password') or die(mysql_error());
mysql_select_db('Kanga') or die(mysql_error());
mysql_query("INSERT INTO 'product' VALUES ('$productname', '$productprice', '$productpostage', '$productquick', '$productdescription', '$productdelivery')");
print "$productname has been added to the database.";
?>
When I press the submit button on the form, I get "Hello world(this is what i entered into the productname field) has been added to the database."
I am using phpmyadmin, so should all the data that is submitted show up in there?
Thanks
Jarrod