Location: PHPKode > projects > Livraria Navi - Ej Project > LivrariaNavi.03/includes/getColecao.php
<?php
$q=$_GET["q"];
@include('conexao.php');
//$con = mysql_connect('localhost', 'root', '');
//if (!$con)
 // {
  //die('Could not connect: ' . mysql_error());
 // }
//mysql_select_db("navi", $con);
$sql="SELECT * FROM tb_colecao WHERE cod_editora = '".$q."'";
$result = mysql_query($sql);
	echo "<select>";
	echo "<option value=\"\"></option>";
while($row = mysql_fetch_array($result))
  {
 	echo "<option value=".$row['cod_colecao'].">".utf8_encode($row['nom_colecao'])."</option>";
  }
echo "/<select>";  
//mysql_close($con);
?> 
Return current item: Livraria Navi - Ej Project