Hi all. I am a newbie who has been working hard to get my first table populated, and it's just not happening. I have poured through a number of tutorials, two books, asked my ISP, and tried every combination I can thiink of to get a single table populated to no avail.
I am sending five variables from a FLASH form using the POST method. I wrote a simple PHP script to then write the variables into a table. The script runs with no errors, but then when I check the table in phpmyadmin, the data has not actually been inserted. Can anyone help?
Here's the code:
<?php
$dbhost="localhost";
$dbusername="vecmxcco_mcallon";
$dbpassword="072599";
$dbname="vecmxcco_people";
$connect = mysql_connect($dbhost, $dbusername, $dbpassword);
mysql_select_db($dbname,$connect) or die ("Could not select database");
$firstname = $POST['firstname'];
$lastname = $POST['lastname'];
$email = $POST['email'];
$usrname = $POST['usrname'];
$pass = $_POST['pass'];
$sql = "INSERT INTO login (record, firstname, lastname, email, usrname, pass)
VALUES (1, '$firstname', '$lastname', '$email', '$usrname', '$pass')" ;
echo "Data has been inserted!";
?>
</html>