ERRO com ALTERAÇÃO de formulário
galera baixem o banco e os arquivos e testem a página CATEGORIAS pra mim e se puderem me dizer o que tem de errado eu fico muito feliz, acredito que seja bem simples para quem conhece o PHP 5.4.16 pq a video aula que eu vi é de 2008 e deve ser bem antigo o php.
Links:
arquivos página: http://www.4shared.com/rar/LoGUNjmG/loja_arquivos.html
arquivos Banco(phpmyadmin - xampp): http://www.4shared.com/rar/Bu1v5-L0/loja_banco.html
Obrigado desde já.
código abaixo:
<!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=utf-8" />
<title>LOJA - ADMIN</title>
</head>
<body>
<table width="750" border="0" align="center">
<tr>
<td colspan="2"><?php include("cabecalho.php"); ?></td>
</tr>
<tr>
<td width="219"><?php include ("menu.php"); ?></td>
<td width="521">
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
<td></td>
</tr>
<tr>
<td><div align="center">
<p>Categoria</p>
<?php
if ($acao != "") {
$sql = mysql_query( "SELECT * FROM categoria WHERE id_categoria = $id" );
?>
<form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF ?>">
<table border="1" width="300" cellspacing="0" cellpadding="1">
<tr>
<td width="93">Categoria</td>
<td width="207"><input name="txt_categoria" type="text" id="txt_categoria" size="35" /></td>
</tr>
<tr>
<td colspan="2"><input name="submit" type="submit" value="Cadastrar" /></td>
</tr>
</table>
</form>
<?php }else{ ?>
<table width="99%" border="1" cellspacing="0" cellpadding="1">
<tr>
<td width="74%">Categoria</td>
<td width="12%" colspan="2" align="center">Ação</td>
</tr>
<?php $sql = mysql_query("select * from categoria");
while ($coluna = mysql_fetch_array($sql)) {
?>
<tr>
<td><?php echo $coluna["categoria"] ?></td>
<td bgcolor="#CCCCCC" align="center"><a href="?acao=Alterar&id=<?php echo $coluna["id_categoria"]; ?>">editar</a></td>
<td bgcolor="#CCCCCC" align="center">Remover</td>
</tr>
<?php } ?>
<tr>
<td colspan="3" align="right">Inserir</td>
</tr>
</table>
<?php } ?>
</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
<td><?php include ("rodape.php"); ?></td>
</tr>
</table>
</body>
</html>PRINT do erro:
/applications/core/interface/imageproxy/imageproxy.php?img=http://www.univel.br/teste.jpg&key=0c2ae7299704128d827e06d01f18af15f775b57f225a71a4770eb557333c00e4" alt="teste.jpg" />
Discussão (7)
Carregando comentários...