Differences

This shows you the differences between two versions of the page.

english:technics:internal-function-call:db_query_using_function_dbquery [2010/10/14 05:59]
Knut Heermann (flip-flop)
english:technics:internal-function-call:db_query_using_function_dbquery [2018/06/03 18:09] (current)
Line 161: Line 161:
\\ \\
 +
 +~~UP~~
===== Script V1.1: ===== ===== Script V1.1: =====
Line 218: Line 220:
// --- The better way // --- The better way
if ( in_array( strtoupper($input), $allowed_input_selector) ) { if ( in_array( strtoupper($input), $allowed_input_selector) ) {
- $select_continent_code = $matches['1']['0'];+ $select_continent_code = aporeplace(trim($matches['1']['0']));
$error_flag = false; $error_flag = false;
} }
Line 297: Line 299:
If the data comes from a user input, this data must be considered very low!! If the data comes from a user input, this data must be considered very low!!
</note> </note>
 +
 +
 +**Links:**
 +  * [[http://php.net/manual/de/function.preg-match.php|PHP preg_match]]
 +  * [[http://www.php.net/manual/de/function.preg-replace.php|PHP preg_replace]]
 +  * [[links/php/regular-expression]]
 +  * [[http://php.net/manual/de/function.in-array.php|PHP in_array]]
\\ \\
english/technics/internal-function-call/db_query_using_function_dbquery.1287028750.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0