dtxb75622 2010-03-30 04:52
浏览 35
已采纳

PHP:替换为wordpress中的wpdb类

wpdb class in wordpress is used for making connection to database.

is there any substitute to this class in PHP repository?

So i can access different database then the original database that have been initiate in wp-config ?

  • 写回答

1条回答 默认 最新

  • drlnwji79147769 2010-03-30 04:56
    关注

    As Wordpress is developped using PHP, I suppose you could use any PHP functions/classes, as long as the corresponding extension is installed on your server.

    See the Database Extensions section of the manual for a list of extensions that can be used to connect to different kinds of database systems.


    If you are using MySQL, I would suggest the mysqli extension -- at least if installed on your server ; it's more recent, and support more features, than the old mysql one.

    PDO can be a good choice too -- and works with both MySQL and other database systems.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!