Jump to content

Recommended Posts

Posted

Boas,

Necessito de uma pequena ajuda.

Tenho uma parte no meu trabalho php que dá para alterar os dados que foram inseridos na BD.

Mas estou com um problema na parte dos ficheiros file.

include("conectar.php");

$id = $_GET['id'];

$sql = mysql_query("Select* From tb_trabalhador WHERE id = $id");

while($exibe = mysql_fetch_array($sql)){

$id = $exibe["id"];

$Nome = $exibe["Nome"];

$Morada = $exibe["Morada"];

$Tipo = $exibe["Tipo"];

$Email = $exibe["Email"];

$AlvaraNumero = $exibe["AlvaraNumero"];

$AlvaraValidade = $exibe["AlvaraValidade"];

$AlvaraAnexo = $exibe["AlvaraAnexo"];

(...)

<form action="salvaralteracao.php" method="POST">

<input type="hidden" name="id" value="<?php echo $id; ?>">

Nome<input type="Varchar" name="Nome" value="<?php echo $Nome; ?>"><p>

Morada<input type="Text" name="Morada" value="<?php echo $Morada; ?>"><p>

Email<input type="text" name="Email" value="<?php echo $Email; ?>"><p>

AlvaraNumero<input type="integer" name="AlvaraNumero" value="<?php echo $AlvaraNumero; ?>"><p>

AlvaraValidade<input type="date" name="AlvaraValidade" value="<?php echo $AlvaraValidade; ?>"><p>

AlvaraAnexo<input type="hidden" name="AlvaraAnexo" value="<?php echo $AlvaraAnexo; ?>"><p>

Quando quero ver o AlvaraAnexo para ver se está preenchido ou não, mostra-me isto

·q_q§ØMlŒy›Œ0ô·¡÷âëâñæ&Ì7ö‚‡ÁQpüaø¦~ðý^€cà…Kü¸ üü¼ ¾îÛî¿}—\·›ö>€ƒà p÷m7àÞŸ‚_Ž¸®l׃ÛÁ=àèVûŽ#Tfð УSpÜ…9‡);¬?[ñ¼NbœpaªSqïJ¬™{pïQpò{ˆPš@tåàQ|ÅÓ´/÷θ—ô)Ÿ`¸ÜOâymÀ3»Üö=ãýù¬â;Ÿ‡7£ø[x–JÀ"Tec”¶`è=âCÇ86A÷¡À~Ô&ËÆÆ™%Å™ÕbÐs,Êóö1*•¿}ñoÕbïe[e~^ýôæªÊŸ¯%?Ï‹»+½}°Í[Õ7iíbçŽ*rAŸ%؇Udëê“Ò†þJŸÏ‡ÏX/ž92tlçˆSü¬Å3›É#ÉÖ¶ØÛÇâ“t—

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.