A
Anonymous
Guest
anybody see a prob with this (the query!) as i get a parse error: exepected T_String...
i've been over and over it and can't see a thing!!
cheers!
i've been over and over it and can't see a thing!!
Code:
<?
$connect = mysql_connect("www.freesql.org:3306","****","****");
$db = mysql_select_db(****);
$query = "INSERT INTO `petition` (`id`, `f_name`, `l_name`, `age`, `address_1`, `address_2`, `address_3`, `postcode`, `email`, `ip`, `datetime`) VALUES ('', '$_post[f_name]', '$_POST[l_name]', '$_POST[age]', '$_POST[address_1]', '$_POST['address_2]', '$_POST[address_3]', '$_POST[postcode]', '$_POST[email]', '$_SERVER['REMOTE_ADDR']', NOW( ))" ;
mysql_query($query) or die ("<font color=\"#FF00FF\">sorry unable to connect to database".mysql_error()."</font>");
echo("<font color=\"#FF00FF\">");
echo("Your name has been entered to the petition");
echo("<\font>");
}
?>
cheers!