用户名: 密码: 忘记密码? 注册
收藏此问题 发表新评论

关于thinkphp多数据库连接的问题

$DSN = array(
   'dbms' => 'mysql',
   'username' => 'root',
   'password' => 'link@13579',
   'hostname' => '192.168.10.70',
   'hostport' => '3306',
   'database' => 'db_linktoo',
  );
  $tootoo = new Db($DSN);
  //$school->switchConnect(1);
  $tootoo->table("link_t_machine");
  $main_account = $_GET ['main_account'];
  $map['UUID'] = $main_account;
  //$sql = "SELECT COUNT(*)  FROM `link_t_machine` WHERE UUID = '".$main_account."' ";
  $total = $tootoo->where($map)->count();


看看我这样操作错误在哪里,请帮我解决,谢谢
昵称: steven0329  时间: 2011-09-22 12:24:00
在线等啊 ....各位i
昵称: steven0329  时间: 2011-09-22 13:08:00
发表评论
昵称:
内容:
验证: