百度之后决定使用PDO,至于为什么选择PDO,这里就不再多说,大家自己去百度下就能明白。
既然要换,那最基本就需要有个常用的数据库操作类,也就是所谓的增删改查等,昨晚捣腾了一晚,大致弄出了个雏形,以下就是代码,希望大家能给出点意见。
<div class="codetitle"><a style="CURSOR: pointer" data="1737" class="copybut" id="copybut1737" onclick="doCopy('code1737')"> 代码如下:
百度之后决定使用PDO,至于为什么选择PDO,这里就不再多说,大家自己去百度下就能明白。
既然要换,那最基本就需要有个常用的数据库操作类,也就是所谓的增删改查等,昨晚捣腾了一晚,大致弄出了个雏形,以下就是代码,希望大家能给出点意见。
<div class="codetitle"><a style="CURSOR: pointer" data="1737" class="copybut" id="copybut1737" onclick="doCopy('code1737')"> 代码如下: