Tienes que definir un criterio de consulta:
Código PHP:
Ver originalif (isset($_GET['name'])) { //si se solicita el término a buscar // Create the query
$data = "%".$_GET['name']."%";
$sql = 'SELECT * FROM employee WHERE name like ?'; //hacemos la búsqueda
}else//si no se solicita la búsqueda
$sql="La consulta predefinida que quieras mostrar";//definimos la consulta por defecto
// we have to tell the PDO that we are going to send values to the query
$stmt = $conn->prepare($sql);
// Now we execute the query passing an array toe execute();
$results = $stmt->execute(array($data)); // Extract the values from $result
$rows = $stmt->fetchAll();
$error = $stmt->errorInfo();
//echo $error[2];