Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.41K
<?php include once('config.php'); $link=mysql_connect(DB_HOST,DB_USERNAME,DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(DB_DATABASE); $query = "INSERT INTO".data_feedback."(First Name,Last Name,Email,Telephone,Comments) VALUES ('". $_POST['firstname']."','". $_POST['lastname']."','". $_POST['email']."',". $_POST['telephone']."','". $_POST['comments']."')" $data = mysql_query($query); if($data) { echo"Feedback is recieved"; } else{ echo"There is an error"; } mysql_close($link); ?> Ive got a syntax error … |