<?php
$nome = $_POST["nome"];
$email = $_POST["email"];
$tel = $_POST["tel"];
include_once 'conexao.php';
$sql = "insert into cliente values(null,
'".$nome."','".$email."','".$tel."')";
//echo $sql;
if(mysql_query($sql,$con)){
$msg = "Gravado com sucesso!";
}else{
$msg = "Erro ao gravar!";
}
mysql_close($con);
?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter