Hello! Why is nothing displayed in the browser?
<?php require_once("config.php"); $num=5; $result=mysql_query("SELECT*FROM gb"); $chislo=mysql_num_rows($result); if($chislo>$num) { while($res = mysql_fetch_assoc($result)) { echo ''.$res['name'].'<br>'.$res['message'].'<hr>'; } echo '<a href=?pages=1>Вперед</a>'; } ?>
There is a connection to the database, if you do not put if, then everything works, but it does not. Why?