exemplo: editar.php?id=3 seria pra editar o número 3, mas o form fica em branco, aqui o código:
<?php
require_once "config.php";
$conexao = mysql_connect ($servidor, $usuario, $senha)or die ("Impossivel de Conectar Servidor Mysql");
mysql_select_db ($nomebase , $conexao) or die ("Impossivel de abrir banco Mysql");
$id_usuarios = $_GET['id'];
$SQL = mysql_query("SELECT id,nome,email,senha,mensagem FROM usuarios order by id DESC") or die(mysql_error());
while ($linha = mysql_fetch_assoc($SQL)) {
{
$id = $row['id'];
$nome = $row['nome'];
$email = $row['email'];
$senha = $row['senha'];
$mensagem = $row['mensagem'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Editar Usuarios</title>
<style type="text/css">
<!--
.style1 {
font-size: 10px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>
<body>
<form action="edit_done.php" method="post" name="form1">
<table width="257" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style1">Nome:</span></td>
<td><div align="center">
<input name="nome" type="text" id="nome" value="<?=$nome?>" />
</div></td>
</tr>
<tr>
<td><span class="style1">Email:</span></td>
<td><div align="center">
<input name="email" type="text" id="email" value="<?=$email?>" />
</div></td>
</tr>
<tr>
<td><span class="style1">Telefone:</span></td>
<td><div align="center">
<input name="telefone" type="text" id="telefone" value="<?=$telefone?>" />
</div></td>
</tr>
<tr>
<td><span class="style1">Senha</span>:</td>
<td><div align="center">
<input name="senha" type="password" id="senha" value="<?=$senha?>" />
</div></td>
</tr>
<tr>
<td><span class="style1">Mensagem:</span>:</td>
<td>
<div align="center">
<textarea name="mensagem" cols="15" rows="5" id="mensagem"><?=$mensagem?>
</textarea>
</div></td>
</tr>
<tr></tr>
</table>
<table width="476" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="369">
<div align="right">
<input type="submit" name="Submit3" value="Editar" />
<input type="reset" name="Submit22" value="Limpar" />
</div></td>
</tr>
</table>
</form>
</body>
</html>
<? } ?>Obrigado a todos










