<?php
$con = mysql_connect("localhost","eventsha_wrdp1","dRWq2u+M30?*");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("eventsha_wrdp1", $con);
$sql="INSERT INTO Persons (FirstName, LastName, D/O/B, Gender, City, Email)
VALUES
('$_POST[firstname]','$_POST[lastname]','$_POST[dob]','$_POST[gender]','$_POST[city]','$_POST')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($con);
?>
[/QUOTE]
I'm just struggling to link that to my database, hopefully this [URL="http://i44.tinypic.com/s4we4h.png"]image[/URL] might help?
No worries if I'm being pretty vague.