0
I have an error running a PHP code
( ! ) Parse error: syntax error, Unexpected end of file in C: wamp64 www site successemail.php on line 35
The code is this
<?php
mysqli_connect("localhost", "root", "") or die(mysql_error());
if(isset($_POST['seunome']) && isset($_POST['suasenha']) && empty($_POST['seunome'] ==false) && empty($_POST['suasenha'] == false)){
$seunome = $_POST['seunome'];
$suasenha = $_POST['suasenha'];
$sqli = "CREATE DATABASE" .$_POST['seunome'];
$geral = mysqli_query($sqli) or die("Errro ao criar");
?>
Are you sure this is the code? It says line 35 in the error. If this is it, check where it closes the open key in the
IF
.– Pagotti