if(mysql_num_rows($madrebusq)>0){echo "<table>";//aqui iria el resto del codigo: while, echo tr td etc.echo "</table>";}