I’m still trying to get this code to work by retrieving data from a previous page sent from a form using POST
This is the code now:
[php]<?php
$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 (’$_POST[emailad]’)”);
mysqli_close($con);
[/php]
The data in the database row is ‘Array’ when i remove the [emailad} but when this is present with the $_POST i still get no data in the database, its just empty.
How do i get it so data from the previous form is upped to the database?