<table class="table table-bordered">
<thead>
<tr>
<th>Clave</th>
<th>Nombre</th>
<th>Apellidos</th>
<th>Formación Académica</th>
<th>Dirección</th>
<th>Correo</th>
<th>Teléfono</th>
</tr>
</thead>
<tbody>
<?php
if ($row = mysqli_fetch_array($sqlDoc)) { //linea de error fetch array
?>
<tr>
<td><?php echo $row['clave'];?></td>
<td><?php echo $row['nombre'];?></td>
<td><?php echo $row['apellidos'];?></td>
<td><?php echo $row['formacion'];?></td>
<td><?php echo $row['direccion'];?></td>
<td><?php echo $row['correo'];?></td>
<td><?php echo $row['telefono'];?></td>
function buscaDocente($clave)
{
global $connect;
$sqlDoc = mysqli_query($connect, "SELECT * FROM profesores WHERE clave = ".$clave);
return $sqlDoc;
}
$sqlDoc = mysqli_query($connect, "SELECT * FROM profesores WHERE clave = '$clave'");