using of <,> etc in tbl_select

This commit is contained in:
Mike Beck
2002-06-10 09:31:53 +00:00
parent 6259592980
commit 0f7d320c35
47 changed files with 75 additions and 24 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-06-10 Mike Beck <mikebeck@users.sourceforge.net>
* tbl_select.php3: lines 12-16,111-123,194-199
- now you can use >= etc.
2002-06-09 Marc Delisle <lem9@users.sourceforge.net>
* lang/french.inc.php3 updates

View File

@@ -400,4 +400,5 @@ $strZip = '"kompresuar me zip"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -401,4 +401,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -399,4 +399,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -402,4 +402,5 @@ $strChoosePage = 'Please choose a Page to edit';
$strCreatePage = 'Create a new Page';
$strSelectTables = 'Select Tables';
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -402,4 +402,5 @@ $strChoosePage = 'Please choose a Page to edit';
$strCreatePage = 'Create a new Page';
$strSelectTables = 'Select Tables';
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strZip = '"zazipov
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strZip = '"zazipov
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -394,4 +394,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -397,4 +397,5 @@ $strZip = '"Gezipt"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -394,4 +394,5 @@ $strYes = 'Yes';
$strZip = '"zipped"';
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -399,4 +399,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -394,4 +394,5 @@ $strYes = 'Oui';
$strZip = '"zipp<70>"';
$strFunc = 'Function'; //to translate
?>

View File

@@ -399,4 +399,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -404,4 +404,5 @@ $strNoIndexPartsDefined = 'No index parts defined!';
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';
$strPrimaryKeyName = 'The name of the primary key must be... PRIMARY!';
$strPrimaryKeyWarning = '("PRIMARY" <b>must</b> be the name of and <b>only of</b> a primary key!)';
$strFunc = 'Function'; //to translate
?>

View File

@@ -403,4 +403,5 @@ $strYes = 'Ja';
$strZip = 'Zip komprimiert';
// To translate
$strFunc = 'Funktion'; //to translate
?>

View File

@@ -396,4 +396,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -397,4 +397,5 @@ $strZip = '"Dikompress dengan Zip"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -402,4 +402,5 @@ $strZip = '"compresso con zip"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -404,4 +404,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -404,4 +404,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -396,4 +396,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -399,4 +399,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -398,4 +398,5 @@ $strZip = 'Komprimert (zip)';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -396,4 +396,5 @@ $strZip = '".zip"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -402,4 +402,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -396,4 +396,5 @@ $strZip = '"arhivat"';
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -400,4 +400,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -401,4 +401,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -398,4 +398,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -398,4 +398,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -393,4 +393,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -405,4 +405,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strChoosePage = 'Please choose a Page to edit'; //to translate
$strCreatePage = 'Create a new Page'; //to translate
$strSelectTables = 'Select Tables'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -395,4 +395,5 @@ $strZip = '
// To translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strFunc = 'Function'; //to translate
?>

View File

@@ -8,6 +8,12 @@
require('./libraries/grab_globals.lib.php3');
require('./libraries/common.lib.php3');
/*
* Defines an array of functions (should possibly be in config.inc.
* so i can also use it in tbl_qbe
*/
$numfunctions = array('=','>','>=','<','<=','!=');
$textfunctions = array('LIKE','=','!=');
/**
* Not selection yet required -> displays the selection form
@@ -90,6 +96,7 @@ if (!isset($param) || $param[0] == '') {
<tr>
<th><?php echo $strField; ?></th>
<th><?php echo $strType; ?></th>
<th><?php echo $strFunc; ?></th>
<th><?php echo $strValue; ?></th>
</tr>
<?php
@@ -100,6 +107,22 @@ if (!isset($param) || $param[0] == '') {
<tr>
<td bgcolor="<?php echo $bgcolor; ?>"><?php echo htmlspecialchars($fields_list[$i]); ?></td>
<td bgcolor="<?php echo $bgcolor; ?>"><?php echo $fields_type[$i]; ?></td>
<td bgcolor="<?php echo $bgcolor; ?>">
<select name="func[]">
<?php
reset($numfunctions);
reset($textfunctions);
if (eregi('char|blob|text|set|enum', $fields_type[$i])){
while (list($k,$fc) = each($textfunctions)){
echo '<option name="'.$fc.'">'.htmlentities($fc).'</option>\n';
}
}else{
while (list($k,$fc) = each($numfunctions)){
echo '<option name="'.$fc.'">'.htmlentities($fc).'</option>\n';
}
}
?>
</select></td>
<td bgcolor="<?php echo $bgcolor; ?>">
<input type="text" name="fields[]" size="40" class="textfield" />
<input type="hidden" name="names[]" value="<?php echo urlencode($fields_list[$i]); ?>" />
@@ -166,34 +189,14 @@ else {
if (!empty($fields) && $fields[$i] != '') {
if (strtoupper($fields[$i]) == 'NULL' || strtoupper($fields[$i]) == 'NOT NULL') {
$quot = '';
$cmp = 'IS';
$func[$i] = 'IS';
}
else if (eregi('char|blob|text', $types[$i])
|| eregi('(set|enum)[(]', $types[$i])) {
if (eregi('char|blob|text|set|enum|date|time|year', $types[$i])){
$quot = '\'';
$cmp = 'LIKE';
if (get_magic_quotes_gpc()) {
$fields[$i] = stripslashes($fields[$i]);
}
$fields[$i] = PMA_sqlAddslashes($fields[$i], TRUE);
}
else if (eregi('date|time|year', $types[$i])) {
$quot = '\'';
$cmp = '=';
}
else if (strstr($fields[$i], '%')) {
$quot = '\'';
$cmp = 'LIKE';
}
else if (substr($fields[$i], 0, 1) == '<' || substr($fields[$i], 0, 1) == '>') {
}else{
$quot = '';
$cmp = '';
}
else {
$quot = '';
$cmp = '=';
} // end if
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $cmp $quot$fields[$i]$quot";
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $func[$i] $quot$fields[$i]$quot";
} // end if
} // end for
} // end if