When I try gave the following problems:
1. Database connectivity
For the management of the access database to a class is used. Why?
Clear classes are fine, but everything is procedual why not here?
2. Separator
In the function {sti_parse_query_parameters be used as a delimiter for the parameters. These are also the same Blockbegrenzer in PHP. Due to the direct encoding of the {it is in the source code to an odd number of {. For some editors have determined so their problems ....
Better this way:
Code: Select all
function sti_parse_query_parameters ($ query)
{
$ result = "";
$ bracket_open ="{";
$ bracket_close ="}";
while (strpos ($ query, $ bracket_open!) == false)
{
$ result .= substr ($ query, 0, strpos ($ query, $ bracket_open));
$ query = substr ($ query, strpos ($ query, $ bracket_open) + 1);
$ parameter_name = substr ($ query, 0, strpos ($ query, $ bracket_close));
$ parameter_value sti_get_parameter_value = ($ parameter_name);
$ result .= ($ parameter_name, $ parameter_value) sti_get_parameter;
$ query = substr ($ query, strpos ($ query, $ bracket_close) + 1);
}
return $ result $ query;.
}