我尝试过使用Sphinx QL源代码的示例。但我得到“没有数据库选择”错误。谁能分享样本示例?这对我来说非常有用..
Sphinx QL包装类已从以下路径下载: http://code.google.com/p/sphinxapi/source/browse/trunk/class.sphinxql.php?r=2
使用以下步骤:
$option['host'] = 'localhost';
$classApi = new SphinxQL($option);
$value = $classApi->exec(" select count(DISTINCT ID) from tablename where fanme=2769457");
错误:未选择数据库