Lord Of The Land
New Member
- Messages
- 26
- Reaction score
- 0
- Points
- 0
My database is realising that a record is being added but isn't show up. Im using php. Heres the code:
Could some help me or correct the code! Thanks!
PHP:
<html>
<head>
</head>
<body>
<?php
include('V1/config.php');
$tbl_name=web_members;
$sql="INSERT INTO $tbl_name(email)VALUES('$email')";
$email=$_POST['email'];
$result=mysql_query($sql);
if($result){
echo "Successful";
echo "<br>";
echo "<a href='http://lordoftheland.x10hosting.com'>Back to the main page</a>";
}
else {
echo "ERROR (MySQL Error) - Please contact the administrator!";
}
mysql_close();
?>
</body>
</html>
Could some help me or correct the code! Thanks!