Hi there.
I need help with my PHP code.
After entering an email address on a previous $POST form this code should add it to the database, it does but the email address does not appear, instead its just a blank value, the column is blank. Here is my code:
the column’s settings are: 2 emailad varchar(40) utf8_general_mysql500_ci
(2 because there is also a auto increment id)
[php]$email= “$POST”;
$con=mysqli_connect(“","","", "*”);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,“INSERT INTO emails (emailad)
VALUES (’$email’)”);
mysqli_close($con);
[/php]
Thank you.