[Resolvido] Não esta retornando nada do Banco
Bom dia pessoal,
estou com o seguinte problema estou fazendo um select no banco, mas
não está retornando nada na minha consulta o q pode ser?
<?php
$cocpf = $_POST['cocpf'];
$result = "SELECT * FROM responsavel where cocpf like '%cocpf%'";
echo "<table width='100px' cellspacing='0' align='center'>";
echo "<tr>
<th class='details_ask'>Nome</th>
</tr>";
$q =mysql_query($result);
while($Relatorio = mysql_fetch_array($q)){
extract($Relatorio);
$cocod= ($cocod);
$pag = "editarProcesso";
$pag = "visualizarelatorio";
if($i % 2 == 0)
echo '<tr align="center" onMouseOver="javascript:this.style.backgroundColor=\'#92A547\'" onMouseOut="javascript:this.style.backgroundColor=\'#D1DBAB\'" onclick="window.location=\''.$pag.'.php?id='.$cocod.'\'" style="cursor:pointer;background-color:#D1DBAB; " >';
else
echo '<tr align="center" onMouseOver="javascript:this.style.backgroundColor=\'#92A547\'" onMouseOut="javascript:this.style.backgroundColor=\'#F8F9F2\'" onclick="window.location=\''.$pag.'.php?id='.$cocod.'\'" style="cursor:pointer;background-color:#F8F9F2; " >';
echo '<td>'.$nome.'</td>
</tr>';
$i++;
}
?>Discussão (2)
Carregando comentários...