Hi,
I am new to php, and I am trying to write a simple script that adds records to a database. I have been trying for 3 days now, but I can't seem to get it to actually add anything to the db.
Is there something extra that has to be added to access the db or am i doing something wrong?
<here's the script>
Code:
<?
$sqname="*******_dotm";
$sqpass="*******";
mysql_connect("65.98.98.58",$sqname,$sqpass);
@mysql_select_db("******_dotm") or die("Unable to select database");
$fname = $_POST['FN'];
$lname = $_POST['LN'];
$uname = $_POST['UN'];
$upass = $_POST['PASS'];
$cpass = $_POST['PASS2'];
$email = $_POST['EM'];
$url = $_POST['URL'];
$aim = $_POST['AIM'];
$msn = $_POST['MSN'];
$yah = $_POST['YAH'];
$not = $_POST['NOT'];
$post = "INSERT INTO Users VALUES ($fname,$lname,$uname,$upass,$email,$url,$aim,$msn,$yah,$not)";
mysql_query($post);
mysql_close();
?>