annakamilla
(usa Manjaro Linux)
Enviado em 27/01/2010 - 19:58h
vo postar o erro Notice: Undefined index: nome in /opt/lampp/htdocs/site/brbuntu/pesquisa2.php on line 27
o arquivo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento sem título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
@import url(site.css);
-->
</style>
</head>
<body>
<table style="width: 958px; height: 767px;" background="http://127.0.0.1/site/brbuntu/design.jpg">
<tbody>
<p class="site"> </p>
<p align="center" class="site"><strong></strong></p>
<p align="left"> </p>
<table width="100%" border="0">
<tr>
<td class="site">nome </td>
<td class="site">descricao</td>
<td>download</td>
</tr>
<?php
$nome=$_POST["nome"];
$conn=mysql_connect ('localhost','root','');
mysql_select_db('ubuntu',$conn);
$consulta = mysql_query("SELECT * FROM `apostila` LIMIT 0, 30 ");
while ($linha=mysql_fetch_array($consulta,MYSQL_ASSOC)) {
$id=$linha["id"];
$nome=$linha["nome"];
$descr=$linha ["descr"];
?>
<tr>
<td class="site"><?php echo "$nome";?></td>
<td class="site"><?php echo "$descr";?></td>
<td class="site"><a href="http://localhost/site/brbuntu/apostilas/?id=<?php echo "$id";?>&n=<?php echo "$nome";?>">download</a></td>
</tr>
<?php
}
mysql_close($conn);
?>
</tbody>
</table>
</table>
</body>
</html>