Changeset 319
- Timestamp:
- 03/18/10 03:24:53 (23 months ago)
- File:
-
- 1 edited
-
test/mysql2sqlite/mysql2sqlite.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/mysql2sqlite/mysql2sqlite.php
r214 r319 30 30 // 31 31 32 function quoteString ($param)33 {34 return "'" . sqlite_escape_string($param) . "'";35 }36 37 32 if (file_exists($sqlite_filename) == true) 38 33 unlink($sqlite_filename) or die ("can't delete file " . $sqlite_filename . "\n"); … … 49 44 } 50 45 46 function quoteString ($param) 47 { 48 global $sqlite_connection; 49 return $sqlite_connection->quote($param); 50 } 51 51 52 // 52 53 // создание схемы БД … … 67 68 $mysql_connection = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die ("mysql_connect: " . mysql_error() . "\n"); 68 69 mysql_select_db($mysql_database, $mysql_connection) or die ("mysql_select_db : " . mysql_error($mysql_connection) . "\n"); 70 mysql_set_charset("utf8", $mysql_connection) or die ("mysql_set_charset : " . mysql_error($mysql_connection) . "\n"); 69 71 70 72 //
Note: See TracChangeset
for help on using the changeset viewer.
