I am new to CSS-Triks! Ok. now I explain the problem ... I have this little problem with PHP SQL I do not understand how to solve ... I think the advancing age. :-/
$mysqli->query("INSERT INTO coming_soon_emails SET email='".$mysqli->real_escape_string($_POST['email']).", ".$mysqli->real_escape_string($_POST['ip'])."'");
The problem is that it adds "email" and "ip" in the same column "email" and the column "ip" is empty. Regards, Mario
Your first version of the query would have been wrong because of how you have it set up, but your second query looks just right. Anytime you need to insert, your final solution is the correct syntax.
Ok. now I explain the problem ...
I have this little problem with PHP SQL I do not understand how to solve ... I think the advancing age. :-/
The problem is that it adds "email" and "ip" in the same column "email" and the column "ip" is empty.
Regards, Mario
If you have an alternative, let me know. Tnx U very much
Mario
Your first version of the query would have been wrong because of how you have it set up, but your second query looks just right. Anytime you need to insert, your final solution is the correct syntax.
Good work!
Ok, if I have more updates about it I make it known.
thanks