mysql_innodb.php

来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 39 行

PHP
39
字号
<?php/*  $Id: mysql_innodb.php 1498 2007-03-29 14:04:50Z hpdl $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2004 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/  require('mysql.php');  class osC_Database_mysql_innodb extends osC_Database_mysql {    var $use_transactions = true,        $use_fulltext = false,        $use_fulltext_boolean = false;    function osC_Database_mysql_innodb($server, $username, $password) {      $this->osC_Database_mysql($server, $username, $password);    }    function prepareSearch($columns) {      $search_sql = '(';      foreach ($columns as $column) {        $search_sql .= $column . ' like :keyword or ';      }      $search_sql = substr($search_sql, 0, -4) . ')';      return $search_sql;    }  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?