Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Amigos, estou quebrando a cabeça e nao consigo realizar a açao nao vazia, segue a imagem de erro:
/applications/core/interface/imageproxy/imageproxy.php?img=http://img845.imageshack.us/img845/5333/capturarzq.th.jpg&key=86d4dcc423bb5e44162a4f1c55b7075ee74febb4dc351a7e55dd600e0cd3ed4e" alt="capturarzq.th.jpg" /> /applications/core/interface/imageproxy/imageproxy.php?img=http://img132.imageshack.us/img132/4654/capturar2z.th.jpg&key=623c66af000f1b2ca50b09cc6eaee286eed906f142728a25baa4890478e4bcad" alt="capturar2z.th.jpg" />
Segue o codigo:
<? include "conexao.php"; ?>
<!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>Untitled Document</title>
<style type="text/css">.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 14px;
}</style>
</head>
<body>
<table width="750" border="0" align="center">
<tr>
<td colspan="2"><?php include "cabecalho.php"; ?></td>
</tr>
<tr>
<td width="182" valign="top"><?php include "menu.php"; ?></td>
<td width="558"><table width="100%" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td height="144" align="center"><div align="center" class="style1">
<p>categoria</p>
<? if ($acao !="") {
$sql = mysql_query (" SELECT * from Categoria Where id_categoria= $id"); ?>
<form id="form1" name="form1" method="post" action="<? echo $PHP_SELF ?>">
<table width="300" border="1" cellpadding="2" cellspacing="0" bordercolor="#666666">
<tr>
<td width="89"><span class="style2">Categoria</span></td>
<td width="201" align="center"><label>
<input name="txt_categoria" type="text" id="txt_categoria" size="35" /> </label></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="OK" /></td>
</tr>
</table>
</form>
<? } else { ?>
</div>
<span class="style2"> </span>
<table width="99%" border="1" cellpadding="2" cellspacing="0" bordercolor="#666666">
<tr>
<td width="90%"><span class="style2">Categorias</span></td>
<td colspan="2" align="center">Ação</td>
</tr>
<? $sql = mysql_query("select * from categorias");
while ($coluna = mysql_fetch_array($sql)) { ?>
<tr>
<td><? echo $coluna['categoria'] ?></td>
<td width="7%" align="center"><img src="imagens/alterar.jpg" width="17" height="15" /></td>
<td width="3%" align="center"><img src="imagens/excluir.jpg" width="13" height="13" /></td>
</tr>
<? } ?>
<tr>
<td colspan="3" align="right"><img src="imagens/inserir.jpg" width="56" height="17" /></td>
</tr>
</table>
<? } ?> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" colspan="2"><?php include "rodape.php"; ?></td>
</tr>
</table>
</body>
</html>
Agradeço a todos que responder!
Carregando comentários...