Hello :) I'm starting to learn with PHP, trying to insert data from the database. Although no return error, the data is not saved. Here is the code:
<?php
$con=mysqli_connect("localhost","mazzu","");
mysqli_select_db($con,"aulasphp");
$nome="Matheus";
$username="mazzu";
$email="[email protected]";
$senha="123";
$tel=9999-99999;
$status="ok";
$obs="ok";
$insere="insert into tb_cadastro values (NULL ,'$nome','$username',$email,'$senha','$tel','$status','$obs')";
$res=mysqli_query($con,$insere);
mysqli_close($con);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Aula 30</title>
</head>
<body>
</body>
</html>