search form redesign; updates #35

and fixed fulltext options selection bug
This commit is contained in:
following
2013-07-18 18:35:40 +02:00
parent a7879a0bce
commit b7f8d0f1ae
17 changed files with 528 additions and 507 deletions
+14
View File
@@ -20,6 +20,7 @@
sql_fetch_array($rs) ... mysql_fetch_array with charset conversion
sql_fetch_assoc($rs) ... mysql_fetch_assoc with charset conversion
sql_fetch_row($rs) ... mysql_fetch_row with charset conversion
sql_fetch_column($rs) ... fetch column with charset conversion
sql_fetch_assoc_table($rs) ... fetch_assoc for all rows
sql_temp_table($table) ... registers an placeholder for use as temporary
table and drop's temporary tables if
@@ -569,6 +570,19 @@
return $retval;
}
function sql_fetch_column($rs)
{
global $opt;
$result = array();
while ($r = mysql_fetch_row($rs))
if ($opt['charset']['iconv'] != 'UTF-8')
$result[] = iconv($opt['charset']['iconv'], 'UTF-8', $r[0]);
else
$result[] = $r[0];
mysql_free_result($rs);
return $result;
}
function sql_affected_rows()
{
global $db;