EXIBIR

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<link rel="stylesheet" href="../css.css" type="text/css" >
<head>
<title>cadastrar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<h3>Visualizando os Paises</h3>
<table cellspacing="0" cellpadding="0">
<tr id="top">
<td width="44">Nome:</td>
<td width="44">Abreviatura:</td>
</tr>

<?
include"conect.php"; //incluindo o arquivo de conexao feito no passo2
$y = mysql_query("SELECT * FROM pais");// selecionei a tabela que quero trabalhar
while($x = mysql_fetch_array($y)){

echo'

<tr>
<td width="314">'.$x['nome_pais'].'</td>
<td width="314">'.$x['cod_pais'].'</td>
</tr>

';

}
?>
</table>
<br>

Comentários