|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-16 23:28 UTC] chores at jp1 dot cx
Description: ------------ Multiple byte letter is destroyed with SELECT. As for database .mdb. By way of ODBC. Sentence end is destroyed. The air which processes the place where it should process at the number of letters, at the number of bytes does. (It translated this sentence with http://translate.google.com/translate_t.) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 18:00:01 2025 UTC |
Source: ------- <?php mb_internal_encoding('Shift_JIS'); $fn_db = mb_convert_encoding('//xxx/xx/xxx/xxx.mdb', 'SJIS'); $dbh = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=$fn_db;Uid=Admin"); $sql = 'SELECT [t].c FROM [t]'; $cursor = $dbh->query($sql); writeTableOneRowByPDOStatement($cursor); while ($col_row = $cursor ->fetch(PDO::FETCH_ASSOC,NULL,1)) { foreach ($col_row as $col_name => $val) { echo "$col_name => $val<br>\n"; } } ?>