Search found 4 matches

by abstract
Mon May 01, 2006 10:43 pm
Forum: Bugs
Topic: MySQLi errors + SET NAMES support
Replies: 5
Views: 3335

post connection queries

Garvin,

I am not a charsets guru,
but I know, that in some combinations of versions
PHP x MySQL it's necesary to send some post connection SQL queries for correct charset functions.

Your solution is a little dangerous:
If some user changes his language version, it's not ideal to change
SET NAMES ...
by abstract
Mon May 01, 2006 2:49 pm
Forum: Bugs
Topic: MySQLi errors + SET NAMES support
Replies: 5
Views: 3335

order for included files

Hello,

only to par 3.

ordering included files:

[0]=>
string(43) "/home/wwwprportal/www.prportal.cz/index.php"
[1]=>
string(60) "/home/wwwprportal/www.prportal.cz/serendipity_config.inc.php"
[2]=>
string(56) "/home/wwwprportal/www.prportal.cz/include/compat.inc.php"
[3]=>
string(54 ...
by abstract
Mon May 01, 2006 1:51 pm
Forum: Bugs
Topic: MySQLi errors + SET NAMES support
Replies: 5
Views: 3335

MySQLi errors + SET NAMES support

Serendipity 1.0-beta2

include/db/mysli.inc.php line 236

1.

if (defined('SQL_CHARSET') && $serendipity['dbNames']) {
mysqli_query("SET NAMES " . SQL_CHARSET, $serendipity['dbConn']);
}

bad order of arguments, correct:

mysqli_query($serendipity['dbConn'], "SET NAMES " . SQL_CHARSET );

----

2 ...
by abstract
Tue Apr 18, 2006 2:22 pm
Forum: Bugs
Topic: mysqli_pconnect
Replies: 1
Views: 1899

mysqli_pconnect

In Serendipity 1.0-beta2 instalation user can choose

Mysqli + dbPersistent -

include/db/mysqli.inc.php :

if (isset($serendipity['dbPersistent']) && $serendipity['dbPersistent']) {
$function = 'mysqli_pconnect';
} else {
$function = 'mysqli_connect';
}


function mysqli_pconnect - not exists ...