Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("conectar.php");
- $id = $_GET['id'];
- $sql = "SELECT * FROM departamento WHERE id='$id'";
- $resultado = mysql_query($sql) or die(mysql_error());
- while($linha=mysql_fetch_array($resultado))
- {
- $nome = $linha["nome"];
- $id = $linha["id"];
- echo "<form action = 'update.php?id='$id'' name = 'form' method = 'get'>";
- echo "Nome:<br>";
- echo "<input type='text' name='nome' value='$nome' maxlenght='100' size='25' /><br>";
- echo "<input type = 'submit' value = 'Editar' />";
- echo "</form>";
- }
- ?>
Add Comment
Please, Sign In to add comment