well, tenhoum site and to using the code Seguito
PHP:
<? Php require_once ('Connections / rede.php');?>
<? Php mysql_select_db ($ database_rede, $ network);
$ Name = $ _POST ['name'];
$ Name = $ _POST ['name'];
$ Age = $ _POST ['age'];
$ Sex = $ _POST ['gender'];
$ City = $ _POST ['city'];
$ User = $ _POST ['User'];
$ Email1 = $ _POST ['email1'];
$ Email2 = $ _POST ['email2'];
$ Password2 = $ _POST ['password2'];
Password3 $ = $ _POST ['Password3'];
if ($ email1! = "$ email2" | | $ password2! = "$ Password3")
header ("Location: nomeousenha.php");
else
{
Email_validade $ = $ _POST ['email1'];
Senha_validada $ = $ _POST ['password2'];
$ Sql = "INSERT INTO cadastrar_usuario (name, surname, age, gender, city, User, email, password) VALUES ('$ name', '$ name', '$ age', '$ sex', '$ city' , '$ User', '$ email_validade', '$ senha_validada') ";
if (mysql_query ($ sql) or die ("Oops ... Your registration can not be completed, try again later". mysql_error ()));
Nome_exemplo $ = $ _POST ['email1'];
$ Sql2 = "INSERT INTO` `redesocial. Meu_perfil` `(` id `,` donodoperfil `,` sobremim `,` pensandoagora `,` city `,` sex `,` birth `) VALUES (NULL, '$ nome_exemplo' 'Sample text.', 'Sample text.', 'Sample text.', 'Sample text.', 'Sample text .')";
if (mysql_query ($ sql2) or die ("Oops ... Your registration can not be completed, try again later". mysql_error ()));
Nome_exemplo $ = $ _POST ['email1'];
$ SQL3 = "INSERT INTO nome_exibicao (id_dono, name) VALUES ('$ nome_exemplo', '$ nome_exemplo')";
if (mysql_query ($ SQL3) or die ("error in sql3, please report to the owner of the site so that it changes this error ... Thanks"));
$ Eumesmo = "My Profile !!!";
$ Baseimagem = "brancobase.JPG";
$ Sql4 = "INSERT INTO friends (amigo1, amigo2, image, nomeexibicao) VALUES ('$ nome_exemplo', '$ nome_exemplo', '$ baseimagem', '$ eumesmo')";
if (mysql_query ($ sql4) or die ("error in sql4"));
$ Sql5 = "INSERT INTO foto_perfil (id_dono, photo) VALUES ('$ nome_exemplo', '$ baseimagem')";
if (mysql_query ($ sql5) or die ("error in sql5"));
header ("Location: usuarioexistente.php");
}
?> [/ PHP]
just that it's time to register the insert daned
sorry for my English, is that I'm Brazilian
Last edited: