$page_title='Poemarios';
include 'header.php';
#include 'searchit.php';
include 'header_small_ensayo.php';
echo "
";
//Using GET
$poemario_view = $_GET['poemario_view'];
$sqlhostname = "mfmedina.fatcowmysql.com";
$login = "medina1";
$password = "tt031802";
$base = "mfm";
$db_connect = mysql_connect($sqlhostname,$login,$password);
$base_selection = mysql_select_db($base,$db_connect);
$query = "SELECT * FROM bernardez WHERE poemario_id = $poemario_view ORDER by poem_order ASC";
$req = mysql_query($query);
if (!$req)
{ echo "
Error ".mysql_errno()." : ".mysql_error()."";
exit; }
$res = mysql_num_rows($req);
if ($res == 0)
{ echo "
Sorry there is no result.";}
else
echo "
";
{ while($row = mysql_fetch_array($req))
{
extract($row);
echo"- $poem_title, $poemario
";
}
mysql_free_result($req);
echo "
";
}
echo "
";
include 'footer.php';
?>