From 0a51e2d8871f84c726f5f8cc4d93700625fd1dcf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 28 Apr 2005 18:41:26 +0000 Subject: [PATCH] Update example to use "usmarc" . Do not rely on register_globals. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185391 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/yaz/reference.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/reference/yaz/reference.xml b/reference/yaz/reference.xml index 2f5c4d5ed2..b39a8bce6b 100644 --- a/reference/yaz/reference.xml +++ b/reference/yaz/reference.xml @@ -1,5 +1,5 @@ - + YAZ Functions YAZ @@ -69,8 +69,10 @@ @@ -83,16 +85,17 @@ if (empty($term) || count($host) == 0) { Library of Congress
RPN Query: - + '; } else { - echo 'You searched for ' . htmlspecialchars($term) . '
'; + echo 'You searched for ' . htmlspecialchars($query) . '
'; for ($i = 0; $i < $num_hosts; $i++) { $id[] = yaz_connect($host[$i]); + yaz_syntax($id[$i], "usmarc"); yaz_range($id[$i], 1, 10); - yaz_search($id[$i], "rpn", $term); + yaz_search($id[$i], "rpn", $query); } yaz_wait(); for ($i = 0; $i < $num_hosts; $i++) {