could someone help me debug this script?
(The * is the information. I know it, but not posting it)
<?php
$dbhost = '*********';
$dbuser = '*********';
$dbpass = '*********';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(!$connection) {
die("Database connection failed: " . mysql_error());
}
$db_select = mysql_select_db("applicationinfo",$connection);
if (!$db_select) {
die("Database selection failed:: " . mysql_error());
}
$retval = mysql_query( $sql, $conn );
if(! $retval )
{
die('Could not enter data: ' . mysql_error());
}
echo "Entered data successfully\n";
mysql_close($conn);
$sql = 'INSERT INTO applicationinfo '.
'(Name, Email, Email_confirmation, Activity, Quote, Username, Password, Password_Confirmation, 13+) '.
'VALUES ( "personal_name", "user_email", "user_email_confirmation", "user_activity", "user_quote", "user_username", "user_password", "user_password_confirmation", "user_13older", NOW() )';
?>
Here's the website where the script will be ran: http://www.ProjectZilkr.com/apply.html
Thanks guys