\n";
print " \n";
print " | \n";
/*remind query or show a sorry message if no result was found:*/
print "Your query: $qry.\n";
print " | \n";
print "
\n";
if($number) {
print "\n\t \n";
print "\t \n";
if($number>1) {
/*split header*/
$plural= 's';
$pluralbe= 'were';
}
else {
$plural= '';
$pluralbe= 'was';
}
/*displays details about results*/
print "\t\t$number result$plural $pluralbe found for this query\n";
print "\t\t \n"; print "\t | \n"; print "\t
\n";
print "\t \n";
print "\t | \n";
/*category of result page to show when returning from split module*/
$cat= "[optional parameters]";
$urlinfo= "p=$p&_maxelmt=$number&MAXHIT=$MAXHIT&cat=".$cat;
/*calling split module*/
"http://[your path]/split.php3?$urlinfo&res=1";
print "\t |
\n";
print "\t \n";
print "\t\t\n";
/*default recordset scanning is 0 to MAXHIT-1 (p=1)*/
$i=$MAXHIT*($p-1);
while ($i<$MAXHIT*$p && $i < $number) {
$mVar1=mysql_result($result,$i, "Var1");
$mVar2=mysql_result($result,$i, "Var2");
/*etc...*/
$index=$i+1;
/*format table*/
if (!($i % 3)) {
print "\t\t \n";
}
$mName= "$mVar1/$mVar2.html"; /*for instance...*/
print "\t\t | \n\t\t\t\n";
print "\n\t\t | \n";
if (($i % 3) == 2) {
print "\t\t \n";
}
/*next record*/
$i++;
} /*end while*/
/*if table didn't end in a full row, append end of row*/
if ($i % 3) {
print "\t\t \n";
}
print "\t\t \n";
print "\t | \n";
print "\t
\n";
} /*end if $number*/
else {
print "\t \n";
print "\t | \n";
/*sorry message*/
print "\t\tSorry, no result was found in the database\n";
print "\t | \n";
print "\t
\n";
}
print "
\n";
?>