Código PHP:
$sql = "SELECT * FROM usuarios WHERE nombre LIKE :term OR apellido LIKE :term OR genero LIKE :term";
$stmt = $pdo->prepare($sql);
$term = $_REQUEST['term'] . '%';
// bind parameters to statement
$stmt->bindParam(':term', $term);
// execute the prepared statement
$stmt->execute();
if($stmt->rowCount() > 0){
while($row = $stmt->fetch()){
$id = $row['id'];
echo "<p class='lnk'><a href='user.php?id=$id'>".$row['nombre']."</a> ".$row['apellido']."</p>";