AJUDA OS BONS EM PHP 06.09.17 20:10
Olá, estou fazendo um website de minecraft, e preciso fazer um sistema de editar o E-mail da pessoa no meu sistema de perfil por favor alguem q manja de php poderia editar meu código? Obrigado.!
- Código:
<?php
include_once("../login/settings/setting.php");
error_reporting(0);
@session_start();
$nome = $_SESSION['nome'];
$usuario = $_SESSION['usuario'];
//modificando informacoes
if(!isset($_SESSION['nome']) && !isset($_SESSION['usuario'])){
header('Location: ../login/index.php');
exit;
}
while($resultado = mysql_fetch_object($query)){
$url_alterar = "form_alterar.php?id=".$resultado->id;
}
$sqll = "SELECT * FROM usuarios";
$query = mysql_query($sql);
$row = mysql_num_rows($query);
while ($linha = mysql_fetch_array($query)){
$status = $linha['STATUS'];
}
?>
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Nexus Network - Produtos</title>
<link rel="shortcut icon" href="http://resourcepack.net/wp-content/themes/ResourcePack%202014%20%28Xmas%29/favicon.ico">
<!-- Bootstrap core CSS -->
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<link href="styleNEXUS.css" rel="stylesheet">
<!-- MyMC CSS -->
<link href="..fontawsome.css" rel="stylesheet">
<!-- FontAwesome CSS -->
<link href="../assets/css/mymc.css" rel="stylesheet">
</head><body>
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Menu de navegação</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- You'll want to use a responsive image option so this logo looks good
on devices - I recommend using something like retina.js (do a quick Google
search for it and you'll find it) -->
<a class="navbar-brand" href="../index.php">Nexus Network</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="../index.php"></i> Inicio</a>
</li>
<li>
<a href="../staff.php"></i> Equipe</a>
</li>
<li>
<a href="/forum/"></i> Forum</a>
</li>
<li>
<a href="../unban.php"></i> Unban</a>
</li>
</li>
<li>
<a href="../servidores/"></i> Loja</a>
</li>
<li class="active">
<a href="../Perfil/"></i> <?php
echo "<img width='23' height='23' src='https://minotar.net/avatar/$nome".$nome->fads."' alt='Foto de Exibição' /> $nome ";
?></a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<div class="container">
<div class="row text-center mc-items">
<center>
<h1> Seu Perfil</h1>
<br/>
<div class="imagem">
<?php
echo "<img src='https://minotar.net/avatar/$nome".$nome->fads."' alt='Foto de Exibição' /> <h1>$nome</h1>";
?>
</div>
<div class="texto">
<center>
<div><?php
echo "<h3>Jogador: $nome</h3>";
echo "<form action='editardados.php?id=$id' method='POST'><h3>E-mail:</h3><input type='email' name='emailnovo' class='form-control' value='$usuario'></input><br/><a href='form_alterar.php?id='.$resultado->id' class='btn btn-success'>Confirmar</a></form>";
echo "<h3>Status da conta: <font color='green'>ATIVADA<font></h3>";
echo "<br/>";
echo "<a href='../login/sair.php' class='btn btn-danger'>Sair</a>";
?>