gluke Thu Mar 1 06:18:06 2001 EDT
Modified files:
/php4/ext/mnogosearch test.php
Log:
# mnoGoSearch example updated.
Index: php4/ext/mnogosearch/test.php
diff -u php4/ext/mnogosearch/test.php:1.16 php4/ext/mnogosearch/test.php:1.17
--- php4/ext/mnogosearch/test.php:1.16 Thu Mar 1 05:38:38 2001
+++ php4/ext/mnogosearch/test.php Thu Mar 1 06:18:06 2001
@@ -1,14 +1,11 @@
<!--
$Source: /local/repository/php4/ext/mnogosearch/test.php,v $
- $Id: test.php,v 1.16 2001/03/01 13:38:38 gluke Exp $
+ $Id: test.php,v 1.17 2001/03/01 14:18:06 gluke Exp $
-->
<html>
<body>
-mnoGoSearch API version: <? echo Udm_Api_Version(); ?>
-<br>
-
<form method=post>
<input type=text size=30 name=q value="<? echo htmlspecialchars(stripslashes($q));
?>">
<input type=submit value=" Search ! ">
@@ -27,7 +24,9 @@
$udm=Udm_Alloc_Agent("mysql://udm:udm@localhost/udm/",'single');
- print "Total number of urls in database: ".Udm_Get_Doc_Count($udm)."<br>\n";
+ if (Udm_Api_Version() >= 30111) {
+ print "Total number of urls in database:
+".Udm_Get_Doc_Count($udm)."<br>\n";
+ }
// Stage 2: set search parameters
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]