Resultados
";
$args = "-v error -format aligned -encoding ISO8859_1";
$dbid = isis_open($db, $args);
$time_start = split(" ",microtime());
$time_start = $time_start[0] + $time_start[1]/1000;
if (trim($search) == "$")
{
$result = isis_search($search,$dbid);
}
else
{
$result = isis_query($search,$dbid);
}
$time_end = split(" ",microtime());
$time_end = $time_end[0] + $time_end[1]/1000;
if (!$result)
{
echo "sorry, no results for " . $search;
}
else
{
echo "got " . isis_num_rows($result) . " rows for " .$search;
$time = $time_end - $time_start;
echo " in " . $time . " seconds.
";
while ($record = isis_fetch_array($result))
{
echo "\n
\n| Campo | Valor |
\n";
foreach($record as $key => $value)
if ($value) {
if (!is_array($value))
echo "| $key | " . htmlspecialchars($value) . " |
\n";
else {
echo "| $key | \n\t\t| Subcampo | Valor | \n";
foreach( $value as $subcamp => $subcamp_value )
echo "\t\t| " . chr($subcamp) . " | " . htmlspecialchars($subcamp_value) . " | \n";
echo " |
\n";
};
};
echo "
\n
\n";
};
isis_data_seek($result, 0);
while ($record = isis_fetch_array($result))
{
var_dump($record);
};
}
}
isis_close($dbid);
?>