par
Invité » 10 oct. 2007, 17:31
J'ai trouvé ça :
Code : Tout sélectionner
<html><head></head>
<body>
<h1>Index-Server Test for PHP4</h1>
<table border=1>
<?php
$q = new COM("ixsso.Query");
$q->Query = "recherche";
$q->Catalog = "System";
$q->SortBy = "rank[d]";
$q->Columns = "Rank, Path, Create, Filename, Characterization, HitCount, Write, DocAuthor";
$q->MaxRecords = 200;
$rs = $q->CreateRecordSet("nonsequential");
$rs->PageSize = 15;
if (!$rs->EOF) {
$c = 0;
while (!($rs->EOF) && ($c<$rs->PageSize)) {
echo "<tr>";
for ($i=0; $i<$rs->Fields->Count; $i++) {
$fld = $rs->Fields($i);
echo "<td>".$fld->Value."</td>";
}
echo "</tr>\n";
$rs->MoveNext();
$c++;
}
$rs->Close();
} else {
echo "EOF";
}
?>
Ca marche très bien
Par contre je me rend compte qu'il manque quelques options et du coup je cherche à savoir s'il existe des gestionnaire de base documentaire PHP gratuit?
J'ai trouvé ça :
[code]<html><head></head>
<body>
<h1>Index-Server Test for PHP4</h1>
<table border=1>
<?php
$q = new COM("ixsso.Query");
$q->Query = "recherche";
$q->Catalog = "System";
$q->SortBy = "rank[d]";
$q->Columns = "Rank, Path, Create, Filename, Characterization, HitCount, Write, DocAuthor";
$q->MaxRecords = 200;
$rs = $q->CreateRecordSet("nonsequential");
$rs->PageSize = 15;
if (!$rs->EOF) {
$c = 0;
while (!($rs->EOF) && ($c<$rs->PageSize)) {
echo "<tr>";
for ($i=0; $i<$rs->Fields->Count; $i++) {
$fld = $rs->Fields($i);
echo "<td>".$fld->Value."</td>";
}
echo "</tr>\n";
$rs->MoveNext();
$c++;
}
$rs->Close();
} else {
echo "EOF";
}
?>
[/code]
Ca marche très bien :)
Par contre je me rend compte qu'il manque quelques options et du coup je cherche à savoir s'il existe des gestionnaire de base documentaire PHP gratuit?