$v) { $fkeynames[$k] = html_entity_decode($v, ENT_QUOTES); } $keyspos = array_combine($fkeynames, $_POST['keys']); $f_schema = html_entity_decode($_POST['f_schema'], ENT_QUOTES); $data->fieldClean($f_schema); $f_table = html_entity_decode($_POST['f_table'], ENT_QUOTES); $data->fieldClean($f_table); $f_attname = $fkeynames[$_POST['fattpos'][0]]; $data->fieldClean($f_attname); $q = "SELECT * FROM \"{$f_schema}\".\"{$f_table}\" WHERE \"{$f_attname}\"::text LIKE '{$_POST['fvalue']}%' ORDER BY \"{$f_attname}\" LIMIT 12 {$offset};"; $res = $data->selectSet($q); if (!$res->EOF) { echo ""; echo ''; foreach (array_keys($res->fields) as $h) { echo ''; } echo "\n"; $i=0; while ((!$res->EOF) && ($i < 11)) { echo ""; foreach ($res->fields as $n => $v) { if (in_array($n, $fkeynames)) echo ""; else echo ""; } echo "\n"; $i++; $res->moveNext(); } echo "
'; if (in_array($h, $fkeynames)) echo '[referenced key]'; echo htmlentities($h), '
",htmlentities($v), "", htmlentities($v), "
\n"; $page_tests=''; $js = ""; } else { printf("

{$lang['strnofkref']}

", "\"{$_POST['f_schema']}\".\"{$_POST['f_table']}\".\"{$fkeynames[$_POST['fattpos']]}\""); if ($_POST['offset']) echo "Prev <<"; } ?>