Código PHP:
// Ahí estaba tu error
$result2 = mysql_query("SELECT * FROM sex_con ORDER BY no_control",$link);
$num_rows = mysql_num_rows($result2);
echo "Estos son los datos actuales $num_rows en la tabla<p>";
echo "<table border=1>\n";
while($a_row2 = mysql_fetch_row($result2)){
echo"<tr>\n";
foreach($a_row2 as $field)
echo"\t<td>$field</td>\n";
echo"</tr>\n";
}
}