Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = 'localhost';
- $user = 'user_name';
- $pass = '';
- $bd = 'bd_name';
- $conexao = mysql_connect($host, $user, $pass) or die(mysql_error());
- mysql_select_db($bd) or die(mysql_error());
- $cod = '001-12-16';
- $nome = $_POST['name'];
- $apelido = $_POST['apelido'];
- $rg = $_POST['rg'];
- $rg1 = $_POST['rg1'];
- $cpf = $_POST['cpf'];
- $cpf1 = $_POST['cpf1'];
- $uf = $_POST['uf'];
- $cro = $_POST['cro'];
- $email = $_POST['email'];
- $senha = $_POST['senha'];
- $indica = $_POST['indica'];
- $rg = $rg."-".$rg1;
- $cpf = $cpf."-".$cpf1;
- $sql = mysql_query("INSERT INTO dentista(dent_cod, dent_name, dent_ap, dent_rg, dent_cpf, cro_uf, cro, dent_email, dent_senha, indique) VALUES("$cod", "$nome", "$apelido", "$rg", "$cpf", "$uf", "$cro", "$email", "$senha", "$indica")");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement