Bom dia a todos. Sempre entro no forum, mas nunca tinha me cadastrado, até que surgiu esse problema e já não sei mais o que fazer. Estou iniciando em php. O problema é o seguinte. Simplesmente ele não está listando os dados. <?php //conexao ao db $conexao = mysql_connect("localhost","root",""); $db = mysql_select_db("ph_data"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php //faz a chamada ao db $sql_lista = "SELECT * FROM professor ORDER BY nome ASC"; //executa a string sql $exe_lista = mysql_query($sql_lista,$conexao) or die (mysql_error()); $num_lista = mysql_num_rows($exe_lista); echo $num_lista; ?> <table border="1" width="100%"> <tr> <td width="50%">Matricula</td> <td width="50%">Nome</td> </tr> <?php //ACREDITO QUE O PROBLEMA ESTEJA POR AQUI if ($num_lista > 0){ while ($reg_lista = mysql_fetch_array($exe_lista, MYSQL_ASSOC)){ ?> <tr> <td width="50%"><?=$reg_lista['matricula'] ?></td> <td width=50%"><?=$reg_lista['nome] ?></td> </tr> <?php } } ?> Bom gente espero qeu possam me ajudar. assim como espero poder ajudar. Obrigado. RodrigoC </table>